I have my main batch file with all of the coding in it. I want to keep my coding nicely organised so what I want to do is to make my main batch file read code off multiple .txt files and display the code on its window.
Lets say I do something like this:
if %TEST%==1 for /f "Delims=" %%a in (test.txt) do (set TEXT=%%a)
echo %TEXT%
This echos the whole text that is inside the .txt but how do I make it run the code? Also how do I make my main batch file echo specific lines of the .txt file?