Windows Legacy OS forum

General discussion

Command Line switch for Scheduled Tasks

by Sageth / March 5, 2004 5:14 AM 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
You are posting a reply to: Command Line switch for Scheduled Tasks
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Command Line switch for Scheduled Tasks
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
Adding tasks to Task Scheduler
by Kees Bakker / March 5, 2004 5:45 AM PST 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?

Collapse -
Re:Adding tasks to Task Scheduler
by Sageth / March 5, 2004 6:18 AM 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.
by R. Proffitt Forum moderator / March 5, 2004 6:34 AM 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.


Collapse -
See if you might be happy with this...
by Edward ODaniel / March 6, 2004 5:10 AM PST
Popular Forums
Computer Newbies 10,686 discussions
Computer Help 54,365 discussions
Laptops 21,181 discussions
Networking & Wireless 16,313 discussions
Phones 17,137 discussions
Security 31,287 discussions
TVs & Home Theaters 22,101 discussions
Windows 7 8,164 discussions
Windows 10 2,657 discussions


Help, my PC with Windows 10 won't shut down properly

Since upgrading to Windows 10 my computer won't shut down properly. I use the menu button shutdown and the screen goes blank, but the system does not fully shut down. The only way to get it to shut down is to hold the physical power button down till it shuts down. Any suggestions?