However, simply prep-ing the file for processing is throwing problems
I have two files comp.bat and text.txt
code.bat
Code: Select all
@echo off
set /p inputFile=<%1
echo %inputFile%
for /f "tokens=1 delims=;" %%a in ("%inputFile%") do set a=%%a;&set inputFile=%inputFile:%%a%%="%
echo %inputFile%
echo %a%
pause
text.txt
Code: Select all
print ("Hello World!");this is pointless code;
The current %'s has gotten the closest to what I want (to break the string into two, putting part 1 into variable a, and leaving the rest in inputFile for later processing), but instead, inputFile becomes %a%, when I want to remove that from the string, not make it equal it