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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scheduled Tasks and Automatic Startup

Status
Not open for further replies.

cyprus106

Programmer
Apr 30, 2001
654
i need to automatically put a program into the computers Scheduled Tasks list? and also, does anyone have any example code that puts a program in the regisrty list to startup automatically when windows starts up? Cyprus
 
Copy the Program into the autostart directory. Perhaps this path may be dependent on the OS.
hnd
hasso55@yahoo.com

 
uhh, I need to hard-code this into the program. When a user gets it, and rns it for the first time, I want it to automatically be placed in the autostart directory. Cyprus
 
When the program runs, find the startup folder, see if the shortcut exists in the folder, and if not then copy the shortcut into that folder; otherwise, just run the program.

Just one note on this: if the user doesn't want your program in the startup, he/she can get very frustrated about having to remove the program from Startup everytime they run the program. (Been there, done that. ;-) ) James P. Cottingham

I am the Unknown lead by the Unknowing.
I have done so much with so little
for so long that I am now qualified
to do anything with nothing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top