Windows 10: CMD Batch file help

Discus and support CMD Batch file help in Windows 10 Support to solve the problem; Hello, i am running into a issue i am trying to resolve but im getting nowhere and hopefully someone could help me. I'm simply trying to point a copy... Discussion in 'Windows 10 Support' started by Mizzy, Apr 6, 2020.

  1. Mizzy Win User

    CMD Batch file help


    Hello, i am running into a issue i am trying to resolve but im getting nowhere and hopefully someone could help me.
    I'm simply trying to point a copy to parent or "grand"parent directory/folder. I tried ".." but it seems to come back the same message Code:
    This is the code im working with
    Code:
    im trying to copy parentfolder\input\game\CDROM\CDROM.BIN etc to something like this parentfolder\OUTPUT\PSX_%x%.BIN using the Code:
    paraphrasing .


    EDIT:
    This works right here
    Code:
    But im trying to get rid of full paths so this can be transfer to other systems and to be read just from the root directory(in this case it's "BAT")

    :)
     
    Mizzy, Apr 6, 2020
    #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, Apr 6, 2020
    #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 CMD Batch file help :)
     
    Kreij, Apr 6, 2020
    #3
  4. Lillebror Win User

    CMD Batch file help

    Batch Files Knowledge Base

    You can't just rename a batch file to .exe *Big Grin CMD Batch file help :D it wont ever work! =D and that "bench" is built into vista *Smile CMD Batch file help :) And you cant input text into another cmd window.. But if you want to open calc.exe from a batch file just type calc.exe *Smile CMD Batch file help :)
     
    Lillebror, Apr 6, 2020
    #4
Thema:

CMD Batch file help

Loading...
  1. CMD Batch file help - Similar Threads - CMD 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. What is %..% sign means in CMD batch files?

    in Windows 10 Gaming
    What is %..% sign means in CMD batch files?: What is %..% sign means in CMD batch files? Ex:@echo offset /p var="Enter no.: "set /p var2="Enter no.: "set /a result=%var%+%var2%echo Your result is %result%pauseexit /b...
  6. What is %..% sign means in CMD batch files?

    in Windows 10 Network and Sharing
    What is %..% sign means in CMD batch files?: What is %..% sign means in CMD batch files? Ex:@echo offset /p var="Enter no.: "set /p var2="Enter no.: "set /a result=%var%+%var2%echo Your result is %result%pauseexit /b...
  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. Graphics in Cmd or Batch?

    in Windows 10 BSOD Crashes and Debugging
    Graphics in Cmd or Batch?: Hello, i want to insert graphics into a batch script, i know it works, but i don't know a command to do so. TIA LG creativeandmore Grafik in Cmd oder Batch?
  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...

Users found this page by searching for:

  1. how to run a batch file cmd synchronously