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.
.\!CHILD.txt
.\!Test1.txt
.\product.def
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 missingfor /F "delims=" %%f IN (%TEMP% 1>%TEMP%\my_temp.txt) DO (
echo %%f
The output comes as below..\CHILD.txt
.\Test1.txt
.\product.def
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.
Thanks....!!!
Disable delayed expansion.
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |