Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows 2008 server task scheduler does not run .bat batch job [closed]

I have a batch file on a Windows 2008 server that, when invoked from command line works fine. However, when I set a scheduled task to run this job, it does not work properly.

The task scheduler does show that that the task is getting run at regular intervals, it does not show any error. But, the batch file does not process what it is supposed to process.

Any ideas on how to fix this issue is most welcome

like image 501
shikarishambu Avatar asked Feb 22 '11 23:02

shikarishambu


People also ask

Can Task Scheduler run a batch file?

Run batch file with Task SchedulerTo use Task Scheduler to run the batch file automatically at a specific time, use these steps: Open Start. Search for Task Scheduler and click the top result to open the app. Right-click the "Task Scheduler Library" branch and select the New Folder option.


1 Answers

Windows Server 2008 will not run any batch file with quotation marks " inside the batch file. See http://technet.microsoft.com/en-us/library/dd851678.aspx

like image 139
Kevin Stewart Avatar answered Oct 19 '22 05:10

Kevin Stewart