The batch file I schedule to run does not work with the /every switch.

A. A. You may find that if you submit a batch file with out the /every switch it works fine, e.g.

at 22:00 /interactive command.bat

however if you try

at 23:00 /interactive /every:M,T,W,Th,F command.bat

it fails. To correct this add cmd /c "", e.g.

at 23:00 /interactive /every: M,T,W,Th,F cmd /c "command.bat"


Please or Register to post comments.

Upcoming Training

Mastering System Center 2012

During over 6 hours of training you can join John Savill from your computer as he will walk you through the key components and capabilities of System Center 2012, what’s involved in using the components, and the benefit they can bring to your environment.

Register Now

Current Issue

May 2013 - The NameTranslate object is useful when you need to translate Active Directory object names between different formats, but it's awkward to use from PowerShell. Here's a PowerShell script that eliminates the awkwardness.

CURRENT ISSUE / ARCHIVE / SUBSCRIBE

Windows Forums

Get answers to questions, share tips, and engage with the Windows Community in our Forums.