Discussion Locked

NT Schedule command 'at'

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

Dear Sir,

Recently I tried to schedule a job to execute on my WIN NT 4.0 Server. I use the command 'at'. Also the Schedule services is running. Following are the commands I key in .

at 01:30 c:adhoc.bat

Basically this command will run a batch file adhoc.bat on the server root directory at 01:30 am the next day. When I check the event log the next day, it gives the following error msgs.

Event ID : 7901

'The C:adhoc.bat command failed to start due to the following error:'
"The system cannot find the file specified"

Appreciate if you could help me on this.

9 replies

by donalconlon

use inverted commas to specify the path i.e. "c:\adhoc.bat" assuming of course that the adhoc.bat is in the root directory.

by asbjorn.alveberg

As pointed out of the previous answers, you should use the back slash (\) when giving the command. It also may be a problem accessing a network drive. If your batch file resides on a network either drive copy it to the server where you give the at-command or use a qualified user to start the scheduler service (Control Panel-Services-Schedule-Startup-Logon As).

It is also useful troubleshooting, trying to run the batch file from command prompt, and then use the Alt+Spacebar-Edit-Mark and paste the command into the batch file.

Good luck!

This discussion is closed to new replies.