954,557 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Create schedule task through VB to run a program

How can i create a task to run a program by coding in vb6 and 2010

akaban
Newbie Poster
11 posts since Mar 2010
Reputation Points: 7
Solved Threads: 1
 

you want some application has to run at perticular time?
You can write windows service for it and set the timings when to execute..

Pgmer
Master Poster
714 posts since Apr 2008
Reputation Points: 54
Solved Threads: 121
 

i need to run program when computer starts. i m trying this

Shell "schtasks /create /sc onstart/tn autoonoff/tr D:\old files\Vb Projects\Auto Shut n Restart\Project1.exe"

i m administrator but want to make this for both administrator and user. operating system where this program will run is Xp sp2

akaban
Newbie Poster
11 posts since Mar 2010
Reputation Points: 7
Solved Threads: 1
 

and i want to do this by vb code

akaban
Newbie Poster
11 posts since Mar 2010
Reputation Points: 7
Solved Threads: 1
 

i need to run program when computer starts. i m trying this

Shell "schtasks /create /sc onstart/tn autoonoff/tr D:\old files\Vb Projects\Auto Shut n Restart\Project1.exe"

i m administrator but want to make this for both administrator and user. operating system where this program will run is Xp sp2


you using shell code in vb code application or in batch file?

Jx_Man
Nearly a Senior Poster
3,329 posts since Nov 2007
Reputation Points: 1,372
Solved Threads: 444
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: