Dear all,
Now I have the problem: I need to copy some files from first directory to second directory periodically (for e.g, each hour).
How can I call the function periodically and how can I copy files in C?
Any help are welcome.
Dear all,
Now I have the problem: I need to copy some files from first directory to second directory periodically (for e.g, each hour).
How can I call the function periodically and how can I copy files in C?
Any help are welcome.
Look up "Cron" in linux. "man Cron" should have info. You want to set up a "Cron job". I wouldn't advise making up your own program for this, because Linux already has a program designed just for this. Yours would just be a duplication of resources, if Cron will do it for you.
Hi Adak,
Thanks for your help
Sorry I did not notice, I want to run in Windows environment.
Your fat penguin icon faked me out.
Windows has the same thing basically. Go to Control Panel and Administrative Tools, then click on Task Scheduler. (Win 7). Other versions of Windows have Task Scheduler right in Control Panel, by itself, iirc.
If you still want to do it in C, separately, then post back - I'm just trying to be as efficient as possible.