Running a batch file with scheduler

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.
 
T

The Marker

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.
 
M

Mike Brannigan

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.
 
S

simonc

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?
 
K

Kerry Brown

Does the account have a password? Since Windows 2000 scheduled tasks need an
account with a password in order to work properly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top