Batch File in Scheduled Tasks -

M

michael

Hello:


I will admit at the start that this is a double post
from 'New Users'; however, after this is the correct post
for my particular problem. Anyway, I want to do some
housekeeping via a batch file during the computer's idle
time. I was hoping that I could run a batch from Scheduled
Tasks utilizing the 'cmd.exe'. I can get the dos prompt
but how do I invoke a batch on the same command line as
invoking 'cmd.exe'?

? 'cmd.exe hskp.bat'

Thanks in advance
 
J

Jerold Schulman

Hello:


I will admit at the start that this is a double post
from 'New Users'; however, after this is the correct post
for my particular problem. Anyway, I want to do some
housekeeping via a batch file during the computer's idle
time. I was hoping that I could run a batch from Scheduled
Tasks utilizing the 'cmd.exe'. I can get the dos prompt
but how do I invoke a batch on the same command line as
invoking 'cmd.exe'?

? 'cmd.exe hskp.bat'

Thanks in advance
Just schedule hskp.bat


Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
R

Ray at

Hi michael,

cmd.exe /c D:\path\file.bat

Take a look at cmd.exe /? for more details.

Or just schedule the batch file itself. You can do that.

Ray at work
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top