Scheduled Task

Experts,

I am using Windows 2000 Professional.  How do I create a scheduled task to run a command in MS-DOS.

Thanks a lot.
LVL 1
jjrr007Asked:
Who is Participating?
 
r-kConnect With a Mentor Commented:
If you're on Win/2000 and you don't see MSTask.exe in the process list (as seen in TAsk Manager), then start it as follows:

 Control Panel -> Admin tools -> Services

then scroll down to the "Task Scheduler" service, and if does not say "Started", then right-click on it and select "Start". Also, you should right-click on it, select "Properties", then change the "Startup Type" to "Automatic" for the future.
0
 
Jay_Jay70Commented:
Hi jjrr007,

you need to create a batch file to run the command you want and add it as a task
0
 
centrepcCommented:
open a notepad enter the dos command you are trying to run.  Save as xxx.bat
make sure it doesn't save as xxx.bat.txt

Note the name of the bat file cannot be the same as a true dos command or you will end up in a loop.  

Then schedule the *.bat that you created.  

0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
r-kCommented:
If you have problems with getting the scheduled job to run properly, don't use the Scheduler control panel. Instead, schedule your bat file with the AT command. See:

  http://support.microsoft.com/default.aspx?scid=kb;en-us;313565&sd=tech
0
 
Kevin HaysIT AnalystCommented:
I know this will work for 2003/xp, I believe the command "AT" is used instead of schtasks though for 2000.

Here is just a simple command that will defrag the c drive via a task schedule.

SCHTasks /Create /RU System /SC Weekly /D Sat /SD 08/06/2005 /ST 22:00:00 /TN Disk_Clean /TR "Cmd /c defrag c: -f"


If that doesn't work in the schedule task "run" box just type in "cmd /c defrag d: -f" or any other command you wish from there.

in the "start in" box key in "Cmd".

Just like the others have stated you can always use a batch file with the command in it and just schedule the .bat file to run.

kshays



0
 
jjrr007Author Commented:
I see scheduled tasks (it is a large corporate setting so they may have disabled this setting)?  The article you provided and the instructions all of you provided say that I need it.  

At home I have Windows XP Home.  I can reach scheduled tasks by going to Start- Programs- Accesories- System Tools.  Can I reach scheduled tasks by using the run command?  Maybe I can check the computer at work using the run command.  

Also, if I don't have scheduled tasks installed on my computer at work, is their a scheduler program I can get from the Internet?
0
 
jjrr007Author Commented:
I meant to say I don't see scheduled tasks program.  Thanks.
0
 
r-kCommented:
The scheduler (in 2000) should be a process named MStask.exe if you check with Task Manager. If it's not there then it means the Task Scheduler service has not been started (it can be started via the services control panel). If someone has locked down the machine so you can run the scheduler then I guess you will have to ask them to turn it on for you.

Yes, there are a number of task scheduling programs on the Internet, some may be free as well. I don't have their names, but you can search with Google or something like that.

On XP the Task Scheduler is not a separate task.
0
 
jjrr007Author Commented:
At this point I need to make sure that I have scheduled tasks available on the computer.  Could I start the scheduled task by going to run - "Mstask.exe"?  If not what is the command that I can use in the run box.  

I need to make sure that I have it installed first before trying to schedule a task.  Thanks.
0
 
jjrr007Author Commented:
I will try this on Monday. I will let you know.  Thanks.
0
 
r-kCommented:
Thanks and good luck.
0
All Courses

From novice to tech pro — start learning today.