Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Execute an EXE every 5 seconds?

Status
Not open for further replies.

Kenny100

Technical User
Feb 6, 2001
72
0
0
NZ
Hi Folks

I've got a little C# executable (copy.exe) that copies files from one directory to another. I was wondering if it is possible to write another EXE that could sit in the Windows startup folder and execute copy.exe every 5 seconds. How could I do this?

Cheers,
Kenny.
 
Kenny,

If I was you I would convert the copy.exe code into a service, you would only need the one application. The wizard in .Net for creating a C# service is pretty good and you can also find some simple sample files online.


rgds,

Leaf
 
Or, you run the command-line AT command (on Windows NT, 2000). XP has some GUI-based way of setting recurring tasks, but I don't have it loaded on my machine.

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top