Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

Command Line switch for Scheduled Tasks

Mar 5, 2004 5:14AM PST

I've been searching around for this for quite some time and I am unable to find anything. I'm trying to find a command line or a registry entry that controls what shows in the Task Scheduler. I'm trying to create a scheduled task that "automatically" reboots a Windows 9x machine (this is done). We would then link this file to a scheduled task to fire at, say, 4:00 AM. We have found no easy way to implement this. Any ideas?

Discussion is locked

- Collapse -
Adding tasks to Task Scheduler
Mar 5, 2004 5:45AM PST
http://www.iopus.com/guides/winscheduler.htm shows an example of how to add your own tasks (in their case: running their programs, in your case start a batchfile or program to reboot).

I read "Click the program you want Windows to run. To see more programs, click Browse". And I see a Browse button.
The program would be highly unuseful if it were limited to files in c:\windows only. And rather cumbersome if you should need undocumented registry entries or command line tools to extend the list.

What's wrong here?


Kees
- Collapse -
Re:Adding tasks to Task Scheduler
Mar 5, 2004 6:18AM PST

We're looking to distribute this on a large number of PC's. We were looking for a way to have a batch file of some sort to add a scheduled task to the task scheduler via a command prompt. I am aware of how to do it otherwise. Sorry if my previous post was unclear

- Collapse -
Reverse engineer it.
Mar 5, 2004 6:34AM PST

Look up REGMON and FILEMON on Google. Use these tools to see what file/registry entries are used when you add a task. Now write a program that does this.

Bob

- Collapse -
See if you might be happy with this...
Mar 6, 2004 5:10AM PST