Windows 10: how to run a cmdline program at a certain time hourly - daily, etc... Solved

  1.    10 Nov 2017 #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.

    example is this idea.

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

  2.    10 Nov 2017 #2

    Create a batch file and run from task scheduler
      My ComputerSystem Spec

  3.    10 Nov 2017 #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.
      My ComputersSystem Spec

  4.    10 Nov 2017 #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
    ECHO This is a batch file
    zap2xml -u -p password -o myfile.xml
    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 ComputerSystem Spec

  5.    10 Nov 2017 #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.
      My ComputersSystem Spec

  6.    10 Nov 2017 #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 zap3Capture.PNG  
      My ComputerSystem Spec

  7.    10 Nov 2017 #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 ComputerSystem Spec

  8.    14 Nov 2017 #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 ComputerSystem Spec


Related Threads
So the day I get home and the pc has been shut off for an entire day and I turn it on and it tells me which users I want to login with and then it crashes. I restart and everything works normal again but don't want to get through this every day for...
I have just setup my external HDD. I haven't yet decided to start the backup process yet.. can I backup entire OS? and instructions said it will create a system image too, I don't have any disks setup yet. I want to make sure everything goes...
My Lenovo X250 gives me an annoying hourly time announcement and I cant turn it off. I cant even find this tool online or find anyone with the same issue. I dont know if its a windows, lenovo or a third party feature. I installed Windows 10 on my...
About every hour I get a BSOD with the error, Critical_Process_Died. The BSOD completes "gathering info" and when it gets to 100% it does not restart. The only processes I have been running are chrome and trying to do malwarebytes scan. I checked...
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 14:14.
Find Us