Discussion Locked

Can't get AT command to work

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am trying to run a batch file on a daily basis but am having troubles getting the AT command to work. I have been to technet and checked the syntax there as well as in the help file and by typing at /?.

this is the line

at 1 18:00 /interactive cmd.exe c:\path\filename.bat

I want to chnage the 18:00 to everyday at 1:00 am. but I can't even get this to work. i have also tried

at 1 18:00 /interactive cmd.exe /c di c:\path\filename.bat

5 replies

by beermonster

What you need is this-

at 18:00 /interactive "cmd.exe /c c:\path\filename.bat"

Firstly the ID (in your case 1). I have yet to see a situation where this is of any use at all, bearing in mind that if you leave it out the scheduler will use the next available number anyway. In short, don't bother with it. Also you will see I have added the quotes, if you don't use them the schedule service does not see your commands as one complete command, and will trigger and then close the cmd window without even looking for the script. Hope it goes ok...

by p-barrett

Thank you very much, did as you said and worked like a charm. Just have to get the every date part working.....shouldn't be hard though. Thanks again.

This discussion is closed to new replies.