Windows 10: Help with batch files for a newbie.

Discus and support Help with batch files for a newbie. in Windows 10 Gaming to solve the problem; Hello and Happy New Year!I have a few files open upon log in to my windows account by using the shell:startup folder. This has been working well but I... Discussion in 'Windows 10 Gaming' started by KHumphreys, Dec 31, 2023.

  1. Help with batch files for a newbie.


    Hello and Happy New Year!I have a few files open upon log in to my windows account by using the shell:startup folder. This has been working well but I feel like instead of having to update this folder every week file names change every week due to having the date in their name with the new files, just running one .bat at startup would make this easier for me.Only trouble is the .bat file is here [C:\Users\me\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup] and all of my files I want to open are in the P:\ drive. Having a batch file in the P: drive isn't desirable as I don't wan

    :)
     
    KHumphreys, Dec 31, 2023
    #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, Dec 31, 2023
    #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 Help with batch files for a newbie. :)
     
    Kreij, Dec 31, 2023
    #3
  4. Help with batch files for a newbie.

    Batch Files Knowledge Base

    Very nice and usefull thanks for contributing.
     
    AphexDreamer, Dec 31, 2023
    #4
Thema:

Help with batch files for a newbie.

Loading...
  1. Help with batch files for a newbie. - Similar Threads - Help batch files

  2. Help with batch files for a newbie.

    in Windows 10 Software and Apps
    Help with batch files for a newbie.: Hello and Happy New Year!I have a few files open upon log in to my windows account by using the shell:startup folder. This has been working well but I feel like instead of having to update this folder every week file names change every week due to having the date in their...
  3. Help with batch files for a newbie.

    in Windows 10 Network and Sharing
    Help with batch files for a newbie.: Hello and Happy New Year!I have a few files open upon log in to my windows account by using the shell:startup folder. This has been working well but I feel like instead of having to update this folder every week file names change every week due to having the date in their...
  4. 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...
  5. 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...
  6. 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...
  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. HELP NEWBIE ALERT

    in Windows 10 BSOD Crashes and Debugging
    HELP NEWBIE ALERT: I need help. I have the acer swift 3 and was told that window is already on the laptop I would just need the code to activate where exactly is the code? And I am really scared that I may have thrown it away. I have kept everything from the box, to what is inside the box....
  9. 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...
  10. 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...