I need to create a Batch file that create another batch file.
The first bat read some name in a txt file and write a break. command for every row founded in that txt.
So i can run the second bat file when i need and automatically create all the file i need.
The txt file looks like this and is generated periodically from a site
Name: Description: cps3_custom "CPS3 Custom Sound" cps3bootao "CPS3 Multi-game bootleg for dead security cart (older)" [...]
Editing some code i found online i made this code:
@(for /F "usebackq skip=1 eol=|" %%I in ("%~dp0MAME search - ADB.txt") do @echo break.>%%I.zip) >"Create Dummy files.bat"
but instead creating a bat file with all the break command it create directly all the dummy-zip file and a useless void bat file.
How can i prevent that code to being executed??
2 Asked on August 5, 2020 by mill
1 Asked on August 5, 2020 by kaleb
1 Asked on August 4, 2020 by techhorse
1 Asked on August 1, 2020 by finn-rup-nielsen
1 Asked on July 29, 2020 by igrimpe
2 Asked on July 27, 2020 by saadq
1 Asked on July 26, 2020 by cicekadam
4 Asked on July 26, 2020 by aarav-prasad
2 Asked on July 24, 2020 by marcusw
Get help from others!