Launching XP's Task Scheduler Wizard?

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
tmallardi
Newbie
Posts: 13
Joined: Tue Jul 08, 2003 1:50 am
Location: Dallas, TX, USA

Launching XP's Task Scheduler Wizard?

Post by tmallardi » Tue Aug 12, 2003 3:52 am

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

Lumumba

Post by Lumumba » Tue Aug 12, 2003 7:33 am

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):

Code: Select all

Run Program>C:\WINNT\system32\notepad.exe

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Tue Aug 12, 2003 7:44 am

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.
MJT Net Support
[email protected]

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts