Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AT command

Status
Not open for further replies.

db2sachin

Programmer
Jun 9, 2003
24
AU
How do I schedule to open command prompt using AT command ?
 
i tried it,

AT 11:47 "cls"

Added a new job with Job Id no. 1

but at 11:47 nothing happened...?
am i doing some thing wrong...?. I never used this command before.


Knowledge is a key of success.



 
It probably worked:

It's ran CLS in a DOS window.. then quit... so you don't have time to see it.

Run a batch file instead

AT 11:55 "c:\bat\run.bat"

RUN.BAT
-------

CLS
ECHO WORKED!
PAUSE
 
i did but its not running at the given time

Knowledge is a key of success.



 
Do you have the rights to run it and is the service running?
 
yes i have admin rights. and which service ....?

Knowledge is a key of success.



 
Use my test - a command prompt window should open at the time it is triggered. By the way it uses the Task Scheduler service.


John
 
If you type "AT" it will either tell you the service is not running or it will list the jobs that are in the queue.
 
well it shows

status ID Day Time Command
=====================================================
Error 2 Tomorrow 11:46 AM dir
Error 3 Tomorrow 11:47 AM dir
Error 4 Tomorrow 11:47 AM cls

well this time i gave before it time was displaying on screen




Knowledge is a key of success.



 
I don't think you can't run a command (even if the column says command). You must run a batch file....

Check your event log, it will say: Unable to find the specified file

Try it with that batch file option I posted eariler.
 
oops.. typo.I meant " I don't think you CAN run a command..."
 
in event log its showing error

The At3.job command failed to start due to the following error:
The system cannot find the file specified.


Yes i did bat file to as you told me but same problem.

Knowledge is a key of success.



 
I just tested it, you definatly need a batch file to start up the job... unless there is a way to combo &quot;CMD.EXE <command>&quot;..

But I use the task schedualer for those things now. It's AT with a GUI.
 
task schedualer...GUI... though windows...?

Knowledge is a key of success.



 
Yes, in your control panel, you'll have an icon called Schedualed Tasks. (Must have admin rights)

Just add the job there.. it's alot simpler..
 
you need to add the interactive switch:

at 2:30 /interactive &quot;cmd.exe&quot;

pbxman
Systems Administrator

Please let Tek-Tips members know their posts were helpful.
 
well this command at 2:30 /interactive &quot;cmd.exe&quot;
is working but not others

Knowledge is a key of success.



 
thats because you are using non-military time..see your jobs are listed to run tomorrow? If it's afternoon (it's 1:52pm here) i'd then issue:

at 13:52 /interactive &quot;c:\run.bat&quot;

to see your jobs, just type:
at

it will show &quot;today&quot; instead.

pbxman
Systems Administrator

Please let Tek-Tips members know their posts were helpful.
 
yes i gave 13:45 time... but why not others running while now i am giving this time format

Knowledge is a key of success.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top