Question

On Windows XP I'm trying to add a job like this:

at 17:07 /every:s dir

I expect dir to be executed every Saturday at 17:07, however I don't see anything happens in the command line window.

Here is the log:

D:\temp>at 17:07 /every:s dir
Added a new job with job ID = 1

D:\temp>time/t
05:06 PM

D:\temp>date/t
Sat 10/02/2010

D:\temp>at
Status ID   Day                     Time          Command Line
-------------------------------------------------------------------------------
Error   1   Each S                  5:07 PM       dir

D:\temp>time/t
05:08 PM

D:\temp>

What am I missing ?

Was it helpful?

Solution

The Task Scheduler service runs at commands in the background. You should not expect to see anything just because you happen to have a console open. A simple way to test that it runs is to write to a log file. You will likely want to wrap this in a batch file.

OTHER TIPS

I think you need to use the /interactive parameter in order for the output to be visible.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top