Notableto printfile names starting with !

September 21, 2010 at 06:56:18
Specs: Windows XP
Hello Guys,

Need some help.

I have a file %TEMP% 1>%TEMP%\my_temp.txt which contains list of file names & paths as below.These file names contains special character "!" in starting of them.


Now i am giving this file my_temp.txt to another for loop but when i am trying to print the names of these files the "!" mark is missing

for /F "delims=" %%f IN (%TEMP% 1>%TEMP%\my_temp.txt) DO (
echo %%f

The output comes as below.


Can anybody tell me how to print the file names having the special character as "!"

So that the file names can be printed as it is.


See More: Notableto printfile names starting with !

Report •

September 21, 2010 at 07:20:12
Disable delayed expansion.

Report •
Related Solutions

Ask Question