Windows 10: How to loop a software using batch file

Discus and support How to loop a software using batch file in Windows 10 Software and Apps to solve the problem; Hi, I have a software that runs from command line, and it needs 2 command windows to run in parallel. So I use a .bat file to start both commands using... Discussion in 'Windows 10 Software and Apps' started by Liargoff, May 15, 2021.

  1. Liargoff Win User

    How to loop a software using batch file


    Hi, I have a software that runs from command line, and it needs 2 command windows to run in parallel. So I use a .bat file to start both commands using START. Something like: START program.exe -m method1 START program.exe -m method2 One method runs for 10 hours and the other for 11 hours, then each batch command window closes. How can I run both methods in loops instead of having to restart each manually? Edit: since they do not end in the same time, I'm waiting for the second method to end and then I start both together, but then there's a time when the first method is not running because it ends earlier, although it needs to keep running immediately when it finishes Thanks

    :)
     
    Liargoff, May 15, 2021
    #1
  2. oily_17 Win User

    Batch Files Knowledge Base

    Don't use batch files very much but one I find useful is for creating a list of files in a directory.
    Just copy the text below into Notepad and save as Filelist.bat

    dir /a /-p /o:gen >filelist.txt

    When you run it from a folder it will create a Filelist.txt file,in the same folder, that lists all the files in that folder.Useful when you are too lazy to type all the files out yourself.
     
    oily_17, May 15, 2021
    #2
  3. Batch Files Knowledge Base

    Very nice and usefull thanks for contributing.
     
    AphexDreamer, May 15, 2021
    #3
  4. Bree Win User

    How to loop a software using batch file

    How to loop a software using batch file

    To loop a batch file forever add a label at the beginning and a GOTO at the end. START has a /WAIT option, so you can wait for the longer of the two methods to complete before looping back to the beginning. Something like....

    :Begin
    START program.exe -m method1
    START /WAIT program.exe -m method2
    GOTO Begin
     
Thema:

How to loop a software using batch file

Loading...
  1. How to loop a software using batch file - Similar Threads - loop software using

  2. software publisher batch file

    in Windows 10 Gaming
    software publisher batch file: so im on windows 11 and mi trying to run a batch file to program on but its says to find a version for your pc please check software publisher https://answers.microsoft.com/en-us/windows/forum/all/software-publisher-batch-file/2e85470f-dc67-4afa-957f-4d3ed7128141
  3. software publisher batch file

    in Windows 10 Software and Apps
    software publisher batch file: so im on windows 11 and mi trying to run a batch file to program on but its says to find a version for your pc please check software publisher https://answers.microsoft.com/en-us/windows/forum/all/software-publisher-batch-file/2e85470f-dc67-4afa-957f-4d3ed7128141
  4. Deleting files using a batch file

    in Windows 10 Gaming
    Deleting files using a batch file: I created a batch file using AI to delete files older than 3 months from a specific folder but the code I received does not work:. Files are dated in DD/MM/YYYY format in the folder.@echo offset "folder=C:\Users\CC\Documents\0Temp"set "cutoffdate="for /f "tokens=1-3 delims=/"...
  5. Deleting files using a batch file

    in Windows 10 Software and Apps
    Deleting files using a batch file: I created a batch file using AI to delete files older than 3 months from a specific folder but the code I received does not work:. Files are dated in DD/MM/YYYY format in the folder.@echo offset "folder=C:\Users\CC\Documents\0Temp"set "cutoffdate="for /f "tokens=1-3 delims=/"...
  6. How to loop a software using batch file

    in Windows 10 Support
    How to loop a software using batch file: Hi, I have a software that runs from command line, and it needs 2 command windows to run in parallel. So I use a .bat file to start both commands using START. Something like: START program.exe -m method1 START program.exe -m method2 Each method runs for 10 hours then stops...
  7. EFTPS Batch Provider Software - Error Occurred within the Batch Provider Software

    in Windows 10 Installation and Upgrade
    EFTPS Batch Provider Software - Error Occurred within the Batch Provider Software: I am having an issue trying to open the batch provider software after recent updates. My laptop was updated to Windows 10 Pro and when I opened the eftps software today it required a software update as well. [ATTACH] I have tried to run it in compatibility mode but I...
  8. Batch files for use in BSOD debugging

    in Windows 10 BSOD Crashes and Debugging
    Batch files for use in BSOD debugging: [img] Warning This thread is for use by the BSOD team ONLY, to store batch files that can be used to collect additional data, fix settings or anything else that is useful in debugging BSOD problems in Windows 10. [img] Information The way I see it working is the first post...
  9. Batch Folder and Batch File/Move Software

    in Windows 10 Software and Apps
    Batch Folder and Batch File/Move Software: Looking for recommendations for software that handles automatic batch folder creation according to defined rules. Also looking for software that handles automatic file and folder moving into more than one directory according to selection criteria (size, date, extension,...
  10. Any good Batch file renaming software / scripts

    in Windows 10 Support
    Any good Batch file renaming software / scripts: Hi there does anybody have any decent batch file renaming software or scripts. Here's a whole slew of music files from BBC Radio 3 -- what I want is after the word Breakfast in the title to insert date and time (european format YYMMDD.HHMM -24 hr format. Here's what...