![]() |
|
#1
|
||||
|
||||
Checking system date/timeHey everyone I was just wondering how you could set a program to run in the backaround and at every set time to run a particular program. I kinda know running the program you could use a system out command, but how can you make a program that simply runs in the backaround? And how can you check the system time?
__________________
"To argue with a person who has renounced the use of reason is like administering medicine to the dead." -Thomas Paine www.sullivan-county.com/deism.htm |
|
#2
|
||||
|
||||
|
Quote:
For the first part of the problem, I would use a fork. I have written a small tutorial on it. It is written towards linux, but I am sure that Windows has a counterpart, if not the exact same call. As for the system time & date, I would use the time call. Also, I would make sure that if you are going to loop, that you use some type of sleep function. Here is a small sample that you may have to modify a bit to get working in windows: CPP / C++ / C Code:
This will print 10 times to the console, but you will still be able to process commands in the console, etc. HTH __________________
The best damn Sports Blog period. |
|
#3
|
||||
|
||||
|
I like that ideal Dsmith and I will look into it some but what I ment by running in the backaround was to have like a system tray icon, i.e. no actual open programm window.
__________________
"To argue with a person who has renounced the use of reason is like administering medicine to the dead." -Thomas Paine www.sullivan-county.com/deism.htm |
Recent GIDBlog
Halfway done! by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need suggestions on a template system | Div | MySQL / PHP Forum | 1 | 15-Jul-2004 09:26 |
| linux system calls | emmie | Computer Software Forum - Linux | 4 | 23-May-2004 14:41 |
| Athlon system locking up on start up. Is it MoBo, Processor, PSU or what? | ebolaosu | Computer Hardware Forum | 8 | 26-Feb-2004 11:19 |
| it worth checking this | dima | Free Web Hosting | 1 | 23-Sep-2003 04:06 |
| i = system ("cd c:\text"); :( | kyle | C Programming Language | 1 | 25-Aug-2003 11:43 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The