Solved Echo is off. shows instead of nothing when removing variable

June 29, 2014 at 08:29:57
Specs: Windows 64
SetLocal EnableDelayedExpansion
For /F "tokens=* delims=" %%A in (%dr%\adirm.txt) Do (
Set TxtLine=%%A
Set TxtLine=!TxtLine:%par2%=!
echo !TxtLine!>>tmp.3)
del adirm.txt & ren tmp.3 adirm.txt

%par2% is C:\WINDOWS\TEMP
So, in adirm.txt, when I remove the line C:\WINDOWS\TEMP using the above code, in its place shows up: Echo is off. when there shold be nothing in its place. How can I fix this? Thank you.


See More: Echo is off. shows instead of nothing when removing variable

Report •


#1
June 29, 2014 at 09:31:57
✔ Best Answer
echo.!TxtLine!>>tmp.3)

How To Ask Questions The Smart Way

message edited by Razor2.3


Report •

#2
June 29, 2014 at 14:48:33
Thank you. I had no idea a period could make such a big difference.

Report •
Related Solutions


Ask Question