General discussion

Locked

NT Schedule command 'at'

By isgahod ·
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.

This conversation is currently closed to new comments.

9 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

NT Schedule command 'at'

by hippo In reply to NT Schedule command 'at'

AT 01:30 c:\adhoc.bat
Note the "\"

~Tony

Collapse -

NT Schedule command 'at'

by isgahod In reply to NT Schedule command 'at'

Poster rated this answer

Collapse -

NT Schedule command 'at'

by donalconlon In reply to NT Schedule command 'at'

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

Collapse -

NT Schedule command 'at'

by isgahod In reply to NT Schedule command 'at'

Poster rated this answer

Collapse -

NT Schedule command 'at'

by alexdesevilla In reply to NT Schedule command 'at'

You should type:

at 01:30 c:\cmd\adhoc.bat

Collapse -

NT Schedule command 'at'

by isgahod In reply to NT Schedule command 'at'

Poster rated this answer

Collapse -

NT Schedule command 'at'

by asbjorn.alveberg In reply to NT Schedule command 'at'

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!

Collapse -

NT Schedule command 'at'

by isgahod In reply to NT Schedule command 'at'

Poster rated this answer

Collapse -

NT Schedule command 'at'

by isgahod In reply to NT Schedule command 'at'

This question was closed by the author

Back to Windows Forum
9 total posts (Page 1 of 1)  

Related Discussions

Related Forums