Windows 10: Windows Batch File

Discus and support Windows Batch File in Windows 10 Gaming to solve the problem; I am performing a backup using xcopy with /e/y/d. One folder is giving me a problem. The source looks like this: Level 1... Discussion in 'Windows 10 Gaming' started by JohnDSX, Jun 6, 2022.

  1. JohnDSX Win User

    Windows Batch File


    I am performing a backup using xcopy with /e/y/d. One folder is giving me a problem. The source looks like this: Level 1 ----------

    :)
     
    JohnDSX, Jun 6, 2022
    #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, Jun 6, 2022
    #2
  3. Batch Files Knowledge Base

    Very nice and usefull thanks for contributing.
     
    AphexDreamer, Jun 6, 2022
    #3
  4. Windows Batch File

    Batch file

    hello,

    i am not so good in creating batch files i need some help in creating one.

    in the following path

    C:\Windows\System32\spool\PRINTERS

    there is a .SHD and .SPL file created when prints launched

    i need a batch file to open the .SPL in notepad first then on closing the notepad opened, all the files .SHD and .SPL are permanently deleted

    any help please

    code to open the notepad is as below

    start notepad "C:\windows\system32\spool\printers\FP00002.SPL"

    the file is opened but there are unwanted characters that appear as well as below


    Windows Batch  File upload_2014-6-19_10-43-2-png.png
     
    Sandeep Bhugoo, Jun 6, 2022
    #4
Thema:

Windows Batch File

Loading...
  1. Windows Batch File - Similar Threads - Batch File

  2. Start program from batch file. Why does it open an "empty" window?

    in Windows 10 Gaming
    Start program from batch file. Why does it open an "empty" window?: Have a batch file that opens Microsoft Money with it's data file on H:/Money.Why does the batch file open the lower window when it executes?The batch file is pretty simple::@ECHO OFF "C:\Program Files x86\Microsoft Money Plus\MNYCoreFiles\MSMoney.exe" "H:Money\D&KWebb.mny"...
  3. Start program from batch file. Why does it open an "empty" window?

    in Windows 10 Software and Apps
    Start program from batch file. Why does it open an "empty" window?: Have a batch file that opens Microsoft Money with it's data file on H:/Money.Why does the batch file open the lower window when it executes?The batch file is pretty simple::@ECHO OFF "C:\Program Files x86\Microsoft Money Plus\MNYCoreFiles\MSMoney.exe" "H:Money\D&KWebb.mny"...
  4. Batch file help, please

    in Windows 10 Software and Apps
    Batch file help, please: Want to write a batch file that will start an executable program from it's data file location on another drive H:. Been a LONG time since I wrote a batch tile. Could I get some help?@ECHO OFFCD H:\DATAFILEPATHC:\PROGRAM FILES x86\EXECUTABLEFILEPATH\EXECUTABLE FILE...
  5. Batch file help, please

    in Windows 10 Gaming
    Batch file help, please: Want to write a batch file that will start an executable program from it's data file location on another drive H:. Been a LONG time since I wrote a batch tile. Could I get some help?@ECHO OFFCD H:\DATAFILEPATHC:\PROGRAM FILES x86\EXECUTABLEFILEPATH\EXECUTABLE FILE...
  6. renaming batch files

    in Windows 10 Network and Sharing
    renaming batch files: Hi,I have had to try and restore from windows file history but it adds a time stamp so my software cant locate the files due to the time stamp.so I have been using windows ppower shell to remove the date if its the same for each fileget-childitem *.png foreach { rename-item...
  7. renaming batch files

    in Windows 10 Gaming
    renaming batch files: Hi,I have had to try and restore from windows file history but it adds a time stamp so my software cant locate the files due to the time stamp.so I have been using windows ppower shell to remove the date if its the same for each fileget-childitem *.png foreach { rename-item...
  8. renaming batch files

    in Windows 10 Software and Apps
    renaming batch files: Hi,I have had to try and restore from windows file history but it adds a time stamp so my software cant locate the files due to the time stamp.so I have been using windows ppower shell to remove the date if its the same for each fileget-childitem *.png foreach { rename-item...
  9. How do you pin a batch file created in Notepad to the Start Menu?

    in Windows 10 Gaming
    How do you pin a batch file created in Notepad to the Start Menu?: How do you pin a batch file created in Notepad to the Start Menu? I have the batch file...whatever.bat. What do I do now? I didn't understand other instructions I saw before. Thanks....
  10. How do you pin a batch file created in Notepad to the Start Menu?

    in Windows 10 Software and Apps
    How do you pin a batch file created in Notepad to the Start Menu?: How do you pin a batch file created in Notepad to the Start Menu? I have the batch file...whatever.bat. What do I do now? I didn't understand other instructions I saw before. Thanks....