Suppose
C:\Program Files\Internet Explorer\
exists 1.txt 2.txt
Execute
cd \
c:
dir /s /b 1.txt >ml.txt
dir /s /b 2.txt >>ml.txt
for /f %%i in (ml.txt) do @echo %%i | del %%i
The final result is not successful
Under the command line, use
for /f %i in (c:\ml.txt) do @echo %i
It shows: C:\Program
It doesn't show the entire path. I don't understand. For Program Files, it only shows the part before the space, not the entire path. So it's impossible to delete the file. How to avoid this space?
Tried these two
for /f %i in (c:\ml.txt) do @echo " %i"
for /f %i in (c:\ml.txt) do @echo %~fi
None of them work
:( I don't understand.
[ Last edited by willsort on 2006-7-23 at 13:14 ]
C:\Program Files\Internet Explorer\
exists 1.txt 2.txt
Execute
cd \
c:
dir /s /b 1.txt >ml.txt
dir /s /b 2.txt >>ml.txt
for /f %%i in (ml.txt) do @echo %%i | del %%i
The final result is not successful
Under the command line, use
for /f %i in (c:\ml.txt) do @echo %i
It shows: C:\Program
It doesn't show the entire path. I don't understand. For Program Files, it only shows the part before the space, not the entire path. So it's impossible to delete the file. How to avoid this space?
Tried these two
for /f %i in (c:\ml.txt) do @echo " %i"
for /f %i in (c:\ml.txt) do @echo %~fi
None of them work
:( I don't understand.
[ Last edited by willsort on 2006-7-23 at 13:14 ]
