Windows 10: Need batch file help

Discus and support Need batch file help in Windows 10 Support to solve the problem; I want to create a script to start a game at E:\Grand Theft Auto V\PlayGTAV.exe and wait one minute and then open an existing batch file at E:\Grand... Discussion in 'Windows 10 Support' started by Kenlou, Jan 16, 2019.

  1. Kenlou Win User

    Need batch file help


    I want to create a script to start a game at E:\Grand Theft Auto V\PlayGTAV.exe
    and wait one minute
    and then open an existing batch file at E:\Grand Theft Auto V\GTAV Hardcore.bat
    What do I have to add to the following?

    start /b "" "E:\Grand Theft Auto V\PlayGTAV.exe"
    start /b "" "E:\Grand Theft Auto V\GTAV Hardcore.bat"
    exit

    Thanks in advance for any help

    :)
     
    Kenlou, Jan 16, 2019
    #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, Jan 16, 2019
    #2
  3. Kreij Win User
    need batch file help

    I think you can just use the "Call" command in your batch file.
    The batch file should delay execution until the call command finishes.

    Call myprogram.exe
    Call mysecondprogram.exe

    Haven't done much batch coding lately *Smile Need batch file help :)
     
    Kreij, Jan 16, 2019
    #3
  4. Need batch file help

    Batch Files Knowledge Base

    Very nice and usefull thanks for contributing.
     
    AphexDreamer, Jan 16, 2019
    #4
Thema:

Need batch file help

Loading...
  1. Need batch file help - Similar Threads - Need batch file

  2. Help with a batch file

    in Windows 10 Network and Sharing
    Help with a batch file: I got the batch file to delete Skype-Setup.exe in the specified folder, but then it keeps repeating. Apparently I am missing something in the command.I didn't see anything relevant in forfiles /?C:\WINDOWS\system32>forfiles /P "C:\Users\Robert Allen...
  3. Help with a batch file

    in Windows 10 Gaming
    Help with a batch file: I got the batch file to delete Skype-Setup.exe in the specified folder, but then it keeps repeating. Apparently I am missing something in the command.I didn't see anything relevant in forfiles /?C:\WINDOWS\system32>forfiles /P "C:\Users\Robert Allen...
  4. Help with a batch file

    in Windows 10 Software and Apps
    Help with a batch file: I got the batch file to delete Skype-Setup.exe in the specified folder, but then it keeps repeating. Apparently I am missing something in the command.I didn't see anything relevant in forfiles /?C:\WINDOWS\system32>forfiles /P "C:\Users\Robert Allen...
  5. Need help with batch file

    in Windows 10 Support
    Need help with batch file: Hi all, I need a batch file to do the following: If this is the first time the batch is run: Do command one If this is the second, third or fourth time the batch is run: Do command two If this is the fifth time the batch is run: Do command three Start all over again as if the...
  6. Need help to create a batch file

    in Windows 10 Support
    Need help to create a batch file: Hi Folks, I need to create a batch file that automatically takes permissions & delete the following file & folders File:- C:\Windows\System32\SecurityHealthSystray.exe Folders:-...
  7. Batch File Help

    in Windows 10 Support
    Batch File Help: I'll be the first to say that I have never made a batch file. I've seen them and even ran them, but never made one. What I would like to do is at 9:00 P.M. copy files from one drive to another drive. And have this process repeat it's self daily. I know that I can put this...
  8. Batch File help!

    in Windows 10 Ask Insider
    Batch File help!: I'm trying to run a batch file that scans the network for a set IP range. When I run the commands individually through command prompt they work just fine. I've saved the txt file as both a .cmd, and .bat. I've also ran both as administrator, as well as navigating to the...
  9. Batch File Help

    in Windows 10 Software and Apps
    Batch File Help: I've never dabbled much in batch files, as I've usually been able to find pre-made ones to do what I wanted. We have an application that handles user data backups. It has three services, and at times, one or two of the three don't start automatically. If you stop and start...
  10. Need help with batch file

    in Windows 10 Support
    Need help with batch file: No serious Batch file or scripting experience, so bear with me. We use a site for our business that has to run on IE and has to have the cache cleared a certain way sometimes for it to function. We have to go IE options, uncheck delete history on exit - go to delete...