task in task scheduler test running never completes?


  1. Posts : 705
    Windows 7 Ultimate x64
       #1

    task in task scheduler test running never completes?


    I created a batch file. it works fine, opens command prompt runs the task, then it exits.
    I set the task up in task scheduler. There is a run button, when run it goes from ready to running and never stops... I can select end. The task simply takes 7 seconds when I run it as clicking on the batch file.
    So I dont think I have it configured correctly?

    here is the batch file
    Code:
       @echo OFF
    ECHO.
    ECHO This is a batch file
    ECHO.
    
    zap2xml -u username@gmail.com -p thepassword -o myfile.xml
    
    
    CLS
    EXIT
    included some pics, you can see it has never run, when I select run, it never completes, simply says running forever?
    Attached Thumbnails Attached Thumbnails task in task scheduler test  running never completes?-tsk2.png   task in task scheduler test  running never completes?-tsk1.png  
      My Computer


  2. Posts : 705
    Windows 7 Ultimate x64
    Thread Starter
       #2

    I changed to only run when user is logged on.
    I changed permissions on the file to everyone full control.
    I get a different response, a flash of a command prompt, then it says runnning forever it says running till I end it.
    Get error on description line of 0x2331

    task scheduler is only for nerds with special knowledge that have insider information!

    Is there an alternative downloadable program I can use to schedule this task? this is just too hard!

    This one actually works, but only once per day, cant run say every 6 hours. BUT it works.
    Freebyte Task Scheduler

    I actually SOLVED this in win7, which should be same as win 10.
    Even though this setting 'start in' says 'optional', you MUST entire the directory, cant leave it blank.
    It runs everytime now I test run this.
    Attached Thumbnails Attached Thumbnails task in task scheduler test  running never completes?-zap3capture.png  
    Last edited by sdowney717; 10 Nov 2017 at 14:17.
      My Computer


  3. Posts : 705
    Windows 7 Ultimate x64
    Thread Starter
       #3

    If you want it to run whenever anyone is logged on, unselect the password, and you have to change the file permission to give everyone full control for the batch file.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 09:16.
Find Us