I have the following batch statement:
for /f "delims=" %%x in (file.lst) do set "offendingfile=%%x"
Although for some really odd reason, when it is called it outputs:
"C:\Windows\calc.exe "
instead of
"C:\Windows\calc.exe"
Since there is a trailing space, I can't use it properly with any other statements in the batch file, does anyone know why it does this and how to fix this, as its been driving me nuts!