how to run a cmdline program at a certain time hourly - daily, etc...


  1. Posts : 1,257
    win10 PRO on 5 PC's and Linux mint
       #1

    how to run a cmdline program at a certain time hourly - daily, etc...


    I have a program from here I want to run at a certain time few times a day. How can this be done?
    Needs to include commandline parameters.
    http://zap2xml.awardspace.info/

    example is this idea.

    zap2xml -z -u tvguideuser@email.xx -p password -o myfile.xml
      My Computer


  2. Posts : 15,480
    Windows10
       #2

    Create a batch file and run from task scheduler
      My Computer


  3. Posts : 4,224
    Windows 10
       #3

    If you run this Google Search, you'll find lots of discussion, how-to's, and even some YouTube videos on exactly how to do this.
    HTH,
    --Ed--
      My Computers


  4. Posts : 1,257
    win10 PRO on 5 PC's and Linux mint
    Thread Starter
       #4

    I created a batch file, it works when manually run. Works great.

    Task scheduler, wont run the batch file. I get an error 0x41303 when trying to hit run as a test.
    That error message appears in the line for the task, and the task says it has never run. I do have run whenever selected too.
    example of my batch file
    Code:
    @ECHO OFFECHO.
    ECHO This is a batch file
    ECHO.
    
    zap2xml -u username@gmail.com -p password -o myfile.xml
    
    CLS
    EXIT
    I set the task up in task scheduler to run every day, under advanced to run every 6 hours.
    So it just is too hard to use if It does not work?
    Is there an alternative task scheduler program which I can use?
      My Computer


  5. Posts : 4,224
    Windows 10
       #5

    This Google Search turns up lots of promising stuff for that error code. The first item in the list is from HelpDeskGeek, which is usually a good source of information.
    HTH,
    --Ed--
      My Computers


  6. Posts : 1,257
    win10 PRO on 5 PC's and Linux mint
    Thread Starter
       #6

    I found a freeware, incredibly simply scheduler that actually DOES run the batch file, and it works. It generates a new XML file when I test run.
    Only thing is it can only be set to run once per day, I want to run this every 6 hours.
    BUT, at least it functions.

    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 how to run a cmdline program at a certain time hourly - daily, etc...-zap3capture.png  
      My Computer


  7. Posts : 1,257
    win10 PRO on 5 PC's and Linux mint
    Thread Starter
       #7

    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


  8. Posts : 1,257
    win10 PRO on 5 PC's and Linux mint
    Thread Starter
       #8

    can the batch be told to run minimized?
    every 6 hours it pops up on the screen, runs till it finishes, then will close.
      My Computer


 

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

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




Windows 10 Forums