0

hey, iam working on c++ and i need help .
will u plz tel me how do i insert time to my system....
i tried with time.h and bios.h but it doesent work ..
also how do i execute a batch file of .exe from c++.

3
Contributors
7
Replies
8
Views
7 Years
Discussion Span
Last Post by Ancient Dragon
1

To change the time on your computer is operating system dependent. If you have a modern computer then you will have to use a modern compiler so that it can access os api functions. On MS-Windows you will use SetSystemTimer()

As for the batch files, call system() function.

Edited by Ancient Dragon: n/a

Votes + Comments
0

To change the time on your computer is operating system dependent. If you have a modern computer then you will have to use a modern compiler so that it can access os api functions. On MS-Windows you will use SetSystemTimer()

As for the batch files, call system() function.

well thanx for reply .
but iam not familiar with api programming. or windows programming.
will u plz show me a prog code....

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.