Windows 10: Batch file for creating the folders the same as other and remove some character

Discus and support Batch file for creating the folders the same as other and remove some character in Windows 10 Software and Apps to solve the problem; Dear All,I hope all goes well. Please kindly see the following pictures. Pic 1 is the current situation and pic 2 is the desire one. Could you let me... Discussion in 'Windows 10 Software and Apps' started by HamidrezaOsareh, Jan 13, 2022.

  1. Batch file for creating the folders the same as other and remove some character


    Dear All,I hope all goes well. Please kindly see the following pictures. Pic 1 is the current situation and pic 2 is the desire one. Could you let me know what is the batch file for doing this activity.Pic 1 Batch file for creating the folders the same as other and remove some character :pic 2:Note: In Pic2 : First I have to create a new folders without consideration the two last digits of every folders in Pic1. Then, I have to do like move "A238-EL-00-MTO-502B_0" and "A238-EL-00-MTO-502B_1" to the new folder named as "A238-EL-00-MTO-502B" and do the same for other.Thanks in advance for your kind help.

    :)
     
    HamidrezaOsareh, Jan 13, 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, Jan 13, 2022
    #2
  3. Batch Files Knowledge Base

    Very nice and usefull thanks for contributing.
     
    AphexDreamer, Jan 13, 2022
    #3
  4. Batch file for creating the folders the same as other and remove some character

    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


    Batch file for creating the folders the same as other and remove some character upload_2014-6-19_10-43-2-png.png
     
    Sandeep Bhugoo, Jan 13, 2022
    #4
Thema:

Batch file for creating the folders the same as other and remove some character

Loading...
  1. Batch file for creating the folders the same as other and remove some character - Similar Threads - Batch file creating

  2. Creating batch file on Win10

    in Windows 10 Network and Sharing
    Creating batch file on Win10: Hey, this is someone's previous answer of creating a bat file but it only works if you dont change the file name first to "*.bat" before you open the file:Open the fileClick Save AsSelect the desired locationIn the File name field, type Whatever.batIn the Type field, select...
  3. Creating batch file on Win10

    in Windows 10 Gaming
    Creating batch file on Win10: Hey, this is someone's previous answer of creating a bat file but it only works if you dont change the file name first to "*.bat" before you open the file:Open the fileClick Save AsSelect the desired locationIn the File name field, type Whatever.batIn the Type field, select...
  4. Creating batch file on Win10

    in Windows 10 Software and Apps
    Creating batch file on Win10: Hey, this is someone's previous answer of creating a bat file but it only works if you dont change the file name first to "*.bat" before you open the file:Open the fileClick Save AsSelect the desired locationIn the File name field, type Whatever.batIn the Type field, select...
  5. Batch file for creating the folders the same as other and remove some character

    in Windows 10 Network and Sharing
    Batch file for creating the folders the same as other and remove some character: Dear All,I hope all goes well. Please kindly see the following pictures. Pic 1 is the current situation and pic 2 is the desire one. Could you let me know what is the batch file for doing this activity.Pic 1 :Pic 2:Note: In Pic2 : First I have to create a new folders without...
  6. Batch file for creating the folders the same as other and remove some character

    in Windows 10 Gaming
    Batch file for creating the folders the same as other and remove some character: Dear All,I hope all goes well. Please kindly see the following pictures. Pic 1 is the current situation and pic 2 is the desire one. Could you let me know what is the batch file for doing this activity.Pic 1 :Pic 2:Note: In Pic2 : First I have to create a new folders without...
  7. Creating a Batch File Example

    in Windows 10 Support
    Creating a Batch File Example: Hey All, I am not looking for someone to do the work for me, I'm trying to get a general idea of what I need to start at. It's been a few years since I've done a batch file and Windows 10 is so different than Windows 7. I am essentially wanting a batch file, that if I type a...
  8. Batch file to move all the files to folders that start with the same name

    in Windows 10 Network and Sharing
    Batch file to move all the files to folders that start with the same name: I have a folder with pdf files like this TCH_123.pdf TCH_573.pdf EHUB_456.pdf EHUB_764.pdf and subfolders with names like TCH and EHUB I want to write a batch file to move all the files to the folder with the name that the files start with. I am a total beginner to...
  9. Create batch files with Batch?

    in Windows 10 Software and Apps
    Create batch files with Batch?: How to create Batch and VBS files with Batch? So I write a batch file which I then convert to exe that creates new folders in a certain directory and then creates batch and VBS files with a certain content and saves them in the created folder. So it's similar to a program...
  10. Create Multipurpose batch file

    in Windows 10 Software and Apps
    Create Multipurpose batch file: Hope this is the correct sub forum for this.. Often use a variety of command line functions e.g. winver / netplwiz etc etc Is there a way of creating a batchfile to include multiple commands with a number option to select...would be so handy i.e. 1 Netplwiz 2 Winver...