I'm attempting to write a script that launches Window XP's "Scheduled Task Wizard."
Rather than recording a script to do the following steps:
Start|Programs|Accessories|System Tools|Scheduled Tasks....
I would prefer to launch the wizard with a "Run Program>" command.
Does anyone know the command line to run this wizard?
Thanks
Tim
Launching XP's Task Scheduler Wizard?
Moderators: JRL, Dorian (MJT support)
As mainly all options in the start menu are links, create a shortcut (*.lnk) to the task scheduler and take/copy its path from the properties. Or get the path with browsing to it from Start\Run ...
Example:
This is the StartMenu option:
Start Menu\Programs\Accessories\Notepad
Here it's based:
C:\WINNT\Profiles\All Users\Start\Menu\Programs\Accessories\Notepad.lnk
It contains the link (check the properties) to notepad at this path (SystemRoot is the DOS environment variable which in this case stands for C:\WINNT):
%SystemRoot%\system32\notepad.exe
So this would work (with NT):
Example:
This is the StartMenu option:
Start Menu\Programs\Accessories\Notepad
Here it's based:
C:\WINNT\Profiles\All Users\Start\Menu\Programs\Accessories\Notepad.lnk
It contains the link (check the properties) to notepad at this path (SystemRoot is the DOS environment variable which in this case stands for C:\WINNT):
%SystemRoot%\system32\notepad.exe
So this would work (with NT):
Code: Select all
Run Program>C:\WINNT\system32\notepad.exe
Hi,
I looked at the properties of the shortcut in my Start/Programs menu. It looks like this:
explorer.exe ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}\::{D6277990-4C6A-11CF-8D87-00AA0060F5BF}
So I can just 'Run Program' this. Check yours - it could be different.
But, if you just want to set up a schedule you can do so in one line in XP by using the AT command line utility:
Run>AT 10:30 /Every:M,T,W,Th,F,Sa,Su "c:\some place\mybatchfile.bat"
See AT /? from command line.
I looked at the properties of the shortcut in my Start/Programs menu. It looks like this:
explorer.exe ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}\::{D6277990-4C6A-11CF-8D87-00AA0060F5BF}
So I can just 'Run Program' this. Check yours - it could be different.
But, if you just want to set up a schedule you can do so in one line in XP by using the AT command line utility:
Run>AT 10:30 /Every:M,T,W,Th,F,Sa,Su "c:\some place\mybatchfile.bat"
See AT /? from command line.
MJT Net Support
[email protected]
[email protected]