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

shikarishambu picture shikarishambu · Feb 23, 2011 · Viewed 97.5k times · Source

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

Answer

Kevin Stewart picture Kevin Stewart · Mar 1, 2012

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