Running a batch file with scheduler

  • Thread starter Thread starter simonc
  • Start date Start date
S

simonc

All this Vista security is driving me insane. I've created a batch file. If I
double click on it in Explorer it runs fine. If I try to start it as a
scheduled task it won't start. Please could someone explain what I need to do
in scheduler to make the batch file run. There is only one user on the
computer who has administrator rights. I've checked the box in scheduler for
Run with the highest privileges, and it still doesn't work.

Grateful for advice.
 
a.. If you leave the password blank and you want the task to run when you
are logged on, open the task. On the Task tab, select the Run only if logged
on check box. The task will run at its scheduled time when the user who
created the task is logged on to the computer.
 
simonc said:
All this Vista security is driving me insane. I've created a batch file.
If I
double click on it in Explorer it runs fine. If I try to start it as a
scheduled task it won't start. Please could someone explain what I need to
do
in scheduler to make the batch file run. There is only one user on the
computer who has administrator rights. I've checked the box in scheduler
for
Run with the highest privileges, and it still doesn't work.

Grateful for advice.

What are you actually telling the scheduler to run?
You cannot just say run whatever.cmd or whatever.bat
You need to provide a complete command line to execute the interpreter and
call the batch file.
 
It all worked when I changed the user account for running the task to
Administrators, this despite the fact that the user account I was using
before was a member of the Administrators group. Is this why Vista is driving
a lot of people mad?
 
Does the account have a password? Since Windows 2000 scheduled tasks need an
account with a password in order to work properly.
 
Back
Top