I need help with a scheduled task...

  • Thread starter Thread starter Kelvin Beaton
  • Start date Start date
K

Kelvin Beaton

I have a .BAT file that I can run if I double clisk it, but if I choose
"Run" from the scheduled task, it doesn't run.

Does Scheduled Tasks not run batch files?

Kelvin
 
Kelvin Beaton said:
I have a .BAT file that I can run if I double clisk it, but if I choose
"Run" from the scheduled task, it doesn't run.

Does Scheduled Tasks not run batch files?

Kelvin
I have the same problem and came here looking for help.

I tried sfc /scannow in a .bat file and all it would do is scroll the sfc
/scannow until I did a control break.

I'll follow this thread, hopefully for an answer.
 
Hi Kelvin,

Have you checked the Task Scheduler log file? In the Scheduled Tasks window,
click Advanced tab and choose "View log" sub-menu.
 
Kelvin Beaton said:
I have a .BAT file that I can run if I double clisk it, but if I choose
"Run" from the scheduled task, it doesn't run.

Does Scheduled Tasks not run batch files?

Kelvin

The Task Scheduler will run batch files. I have created a batch file that executes the following command:

@echo "Hello World!"

Here is the Run command listed in the Task properties:

C:\WINDOWS\system32\cmd.exe /K c:\dev\hello.bat

The '/K' option causes the command window to remain open after the batch file has completed execution. This worked flawlessly less than ten minutes ago.

carl
 

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

Back
Top