I am trying to create a batch file(s) that makes a folder, that contains 9 folders, with each of those 9 folders containing a text file, each of which has similar, but unique text.
What I have been able to scrap together is a batch that creates 1 instance of the text
rem Saved in D:\Temp\WriteText.bat
@echo off
@echo -ATTEDIT> ATTEDITChangeName.txt
@echo y>> ATTEDITChangeName.txt
@echo 36x24bdr>> ATTEDITChangeName.txt
@echo SUBTITLE>> ATTEDITChangeName.txt
@echo B209 11.5 TON BRIDGE ELEC LAYOUT>> ATTEDITChangeName.txt
@echo 612.9014,43.8533>> ATTEDITChangeName.txt
@echo 618.5063,35.8628>> ATTEDITChangeName.txt
@echo 109.9409,-6.7209>> ATTEDITChangeName.txt
@echo.>> ATTEDITChangeName.txt
@echo v>> ATTEDITChangeName.txt
@echo c>> ATTEDITChangeName.txt
@echo B209>> ATTEDITChangeName.txt
@echo B211>> ATTEDITChangeName.txt
@echo Next>> ATTEDITChangeName.txt
As well as another batch that creates a single folder.
echo ========================
:: CREATE FILES START
cd /d "Manuals\Desktop\410 SCRIPT\Test\"
md XXX
:: CREATE FILES END
echo Done!
pause >nul
I need help with:
- Either making these work together, or meshing them into one batch file
- Making the folder batch file, create 9 uniquely named folders inside the folder it already creates.
- Making it so that each of those 9 folders has its own .txt file, WHICH will end up having slightly different contents in each respective folder
The Iterations of Text
The only text that needs to change, is the text that currently says 'B209 11.5 TON BRIDGE ELEC LAYOUT" This needs to be something different in every folder.
This is for work, and to put it plainly, I am stumped. Any help would be greatly appreciated.
Thank you
EDIT:
B209 11.5 TON BRIDGE ELEC LAYOUT
B209 11.5 TON PANEL LAYOUT
B209 11.5 TON BRIDGE ELEC CONTROL PWR
B209 11.5 TON ELEC UTIL PWR
B209 11.5 TON 460VAC DRIVE
B209 11.5 TON PLC MOD 1 & 2
B209 11.5 TON PLC MOD 3 & 4
B209 11.5 TON PLC MOD 5 & 6
B209 11.5 TON MOD 7 & 8