General discussion

Locked

AT Command

By m.graft ·
I have created a Batch file which I need to schedule to run at a specific time but the AT Command under NT4WRK is not running it?

The command I?m typing is:
At (time) /Every:(Date) x(batch file)*.bat

Note: When I double click the batch file it works fine.

Thanks,

Manuel

This conversation is currently closed to new comments.

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

All Comments

Collapse -

AT Command

by Rabbit_Runner In reply to AT Command

There are two possible problems. I can only give you info for one, the other, I will point to the needed solution.

1. When you schedule the AT command, the SYSTEM account is the one running the batch file. But when you double click, you are usingthe current logged on user credentials. You may need to select a user with the required credentials to run the AT command.

2. When executing a batch file by double clicking, you open a CMD window, the file runs, and the results processed.
BUT when the batch file is run from an AT command, the CMD window does NOT open up. Therefore the batch file is not executed. It is here, that I do not have all the information needed. But I have (in the distant past) seen the syntax for a batch file, which will open a CMD window and execute the batch file using the AT command. Problem is, I do not remember what that syntax was.

It is the second solution, that I believe will correct your problem. You should do some searching and see if you can find the syntax for that command. Let me know if you find anything. I have looked recently, but not found it.

Best of luck.

Collapse -

AT Command

by m.graft In reply to AT Command

Poster rated this answer

Collapse -

AT Command

by Roly Dee In reply to AT Command

If your X: drive is a mapped network drive, this will not work.
The batch file is run by the Schedule service in a separate environment and security context, not that of the logged on user (if any) Basically it runs your batch file in the context of LocalSystem.
This means that your file initialy has access only to the machine's local drives. You could have a local batch file that maps a drive to another server, then runs the original file, but IMHO that's over-complex. Easier to copy the file locally.

PS Bugs Bunny refers to the cmd.exe window not appearing: if this is the problem, then insert "%comspec% /c" before the name of your batch file in your AT command.

Collapse -

AT Command

by m.graft In reply to AT Command

Indeed my Z:\drive is a mapped network drive, but I still can't understand that when I run the schedule under W2K or XP than it works fine? Thanks anyway for the info!

Manuel

Collapse -

AT Command

by m.graft In reply to AT Command

This question was closed by the author

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

Related Discussions

Related Forums