1.    1 Week Ago #1
    Join Date : Aug 2015
    Posts : 241
    win7 and ubuntu

    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 ComputerSystem Spec
  2.    1 Week Ago #2
    Join Date : Dec 2015
    Posts : 5,927
    Windows10

    Create a batch file and run from task scheduler
      My ComputerSystem Spec
  3.    1 Week Ago #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 ComputersSystem Spec
  4.    1 Week Ago #4
    Join Date : Aug 2015
    Posts : 241
    win7 and ubuntu
    Thread Starter

    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 ComputerSystem Spec
  5.    1 Week Ago #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 ComputersSystem Spec
  6.    1 Week Ago #6
    Join Date : Aug 2015
    Posts : 241
    win7 and ubuntu
    Thread Starter

    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.    1 Week Ago #7
    Join Date : Aug 2015
    Posts : 241
    win7 and ubuntu
    Thread Starter

    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.    6 Days Ago #8
    Join Date : Aug 2015
    Posts : 241
    win7 and ubuntu
    Thread Starter

    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

 


Similar Threads
Thread Forum
Solved Having 1 crash every time I start up just ONCE then not anymore daily
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...
BSOD Crashes and Debugging
first time user of WD backup program (inquiry)
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...
Backup and Restore
Solved How do i turn off the Hourly Time Announcement?
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...
Software and Apps
Hourly BSOD with the error Critical_Process_Died
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...
BSOD Crashes and Debugging
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 05:24.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums