Task Schedule batch file

Discussion in 'Windows Vista General Discussion' started by donator, Apr 3, 2007.

  1. donator

    donator Guest

    I have a batch file (ftp) which works just fine when I manually run it. When
    I set it up in Task Scheduler, status says it runs, but the cmd window pops
    open a second, nothing there, and closes. I have it set to run when user is
    logged on, and run with highest privileges. Well, I have tried all sorts of
    combos. When run fron Task Scheduler, it says Queened in the status column.
    I'm out of ideas.
     
    donator, Apr 3, 2007
    #1
    1. Advertisements

  2. donator

    Norbert Guest

    Do you have a password setup for your user. Mine tasks won't execute without
    one.


    Good luck,
     
    Norbert, Apr 3, 2007
    #2
    1. Advertisements

  3. donator

    donator Guest

    Yes I do. Both users and admin have passwords. Don't know that it makes a
    difference, but this is Visata Business.
     
    donator, Apr 4, 2007
    #3
  4. donator

    phctech Guest

    When you need to edit the schedule run command to "cmd /c
    Batchfilename.bat"
    This allows windows to run the command prompt for executing the batch
    file. Otherwise the batch file will not execute

    Regards
    Pete
     
    phctech, Apr 12, 2007
    #4
  5. donator

    roberts124 Guest

    I don't suppose I could get you to post your script info (minus your
    personal info obviously)? I am struggling to build an ftp batch file
    that I could load for some lesser capable folks I work with for
    uploading files to my ftp when they are away. There is almost nothing
    posted on how to do this in 2k/xp and vista. Many thanks in advance if
    you would :)

    Jeremy
     
    roberts124, Apr 20, 2007
    #5
  6. donator

    Stockholm Guest

    Hello, we have the same problem using XP Professional and I have tried

    In Task [ C:\BatchFile\Ftp.bat ] an
    In Task [ Cmd / C:\BatchFile\Ftp.bat

    Am I doing something wrong
     
    Stockholm, Jan 3, 2009
    #6
  7. donator

    eaglehot59 Guest

    Task -> Actions -> Edit

    ....
    Start in (optional): [put your batch file directory
     
    eaglehot59, Feb 3, 2009
    #7
  8. donator

    phctech Guest

    Try

    Cmd /c C:\BatchFile\Ftp.bat

    /c = carry out command and then terminate

    Regards
    Pete
     
    phctech, Mar 9, 2009
    #8
    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.