Hello all, i'm having problems using the "at" command to schedule a job on my computer. I can use task scheduler fine but whenver i try to use the "at" command it won't run a single job unless i go to task scheduler and update the time.
Printable View
Hello all, i'm having problems using the "at" command to schedule a job on my computer. I can use task scheduler fine but whenver i try to use the "at" command it won't run a single job unless i go to task scheduler and update the time.
Read and the solution will be before you....
C:\reading-is-fundamental>at /?
The AT command schedules commands and programs to run on a computer at
a specified time and date. The Schedule service must be running to use
the AT command.
AT [\\computername] [ [id] [/DELETE] | /DELETE [/YES]]
AT [\\computername] time [/INTERACTIVE]
[ /EVERY:date[,...] | /NEXT:date[,...]] "command"
\\computername Specifies a remote computer. Commands are scheduled on the
local computer if this parameter is omitted.
id Is an identification number assigned to a scheduled
command.
/delete Cancels a scheduled command. If id is omitted, all the
scheduled commands on the computer are canceled.
/yes Used with cancel all jobs command when no further
confirmation is desired.
time Specifies the time when command is to run.
/interactive Allows the job to interact with the desktop of the user
who is logged on at the time the job runs.
/every:date[,...] Runs the command on each specified day(s) of the week or
month. If date is omitted, the current day of the month
is assumed.
/next:date[,...] Runs the specified command on the next occurrence of the
day (for example, next Thursday). If date is omitted, the
current day of the month is assumed.
"command" Is the Windows NT command, or batch program to be run.
Sorry i should have clarified, i know how to use the at command it's just that it's not working for me. I can schedule a job fine but it won't ever run, i'd have to go back and update the time in the actual task scheduler application for it to run. Does anyone know how i can "share" out my task scheduler so that i would be able to remote schedule services for my computer from afar?
If you're using the at command and the program isn't running unless you update it in the scheduler, it sounds like you're using the at command wrong. Give us an example of how you used it and what you expected from what you typed.
Good call zENGER.
vynkz, cut & paste the exact syntax and we can spot the issue.
at 10:00AM /every:m,t,w,th,f,s,su c:\startcmd.bat
Just a little batch file that i used to test on, works fine when i schedule it through task scheduler or go back and change the time on the "At1" job. The job goes through and everything, i see it in dos prompt AND in the scheduled tasks folder.
try adding /interactive to the string. If you don't have interactive in the string you won't see the window pop-up.
Holy crap thanks alot zenger, christ I was wondering why the hell it wouldn't work. It's just weird though that if I set it to non interactive and update the time via task scheduler it works. Thanks alot though, I don't know wny I never thought of that. Thanks!