Running a batch file with scheduler

Discussion in 'Windows Vista General Discussion' started by simonc, Jan 28, 2009.

  1. simonc

    simonc Guest

    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.
     
    simonc, Jan 28, 2009
    #1
    1. Advertisements

  2. simonc

    The Marker Guest

    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.
     
    The Marker, Jan 28, 2009
    #2
    1. Advertisements

  3. 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.
     
    Mike Brannigan, Jan 28, 2009
    #3
  4. simonc

    simonc Guest

    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?
     
    simonc, Jan 28, 2009
    #4
  5. simonc

    Troodon Guest

    The issue seems to be this: 'Windows Vista Home Basic, Windows Vist
    Home Premium, and Windows Vista Starter save user credentials only fo
    the current session' (http://support.microsoft.com/kb/931711
     
    Troodon, Jan 28, 2009
    #5
  6. simonc

    Kerry Brown Guest

    Does the account have a password? Since Windows 2000 scheduled tasks need an
    account with a password in order to work properly.
     
    Kerry Brown, Jan 29, 2009
    #6
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.