|
Answer» Hey all,
I am having trouble getting the at command to work the way I wish it to. can some one please tell me how to add a scheduled task with an id or name I choose?
here is an example of what I wish to do Code: [Select]at "\\computer" 99 13:30 "C:\WINDOWS\test.txt"
thanks, WayneNot sure you can. You can always use the GUI to rename the job, but if you do, the AT command will no longer have access to that job.
The Windows scheduler USES two API's. The GUI API can see jobs placed on the schedule by the AT command. The AT API cannot see jobs put on the schedule by the GUI.
I am not sure what is the actual command that you wish to execute at 13:30 but my guess is that the command that you wish to run has to end with either EXE, bat or other similar extension, I am not sure txt will do it.
If you wish to run AT on the local computer, you don't need to specify the computer name but if it is for a remote computer, your login account has to have admin rights on that remote PC this to work.
Here is an example AT script that I created and used couple of days ago just ti give you an idea:
at \\computer 21:00 /every:M,T,W,Th,F shutdown -s -f -t 300
which will shut down the remote computer at 9PM Mo- through Fri, giving 5 minute LONG waiting time for the user in case the computer is in use at that time.
The command itself is indicated with red, you can substitute it with any other command.
Geza That is the way I was working with the at command. But it would not allow me to change the name from at1, at2, at3, ext.
You can run any ext that your computer knows through that at command.
Quote from: Geza on July 03, 2008, 06:41:26 PM I am not sure what is the actual command that you wish to execute at 13:30 but my guess is that the command that you wish to run has to end with either exe, bat or other similar extension, I am not sure txt will do it.
after looking through possable commands I found the following:
schtasks
This is Microsoft's replacement for the at command. It dose everything the at command will and ALSO lets you set things like a unique name for the tasks you are setting up.Hi, I am familiar with "schtasks" but your question was "at" related.
Personally I just keep track of the ATx names in my notes of which at tasks contains what.
|