Batch File in Scheduled Tasks -

  • Thread starter Thread starter michael
  • Start date Start date
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
 
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
 
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
 
Back
Top