Hello,
Could someone please help me how to include exclamation marks if ENABLEDELAYEDEXPANSION is enabled,
For example,
setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
for %%x in (%*) do echo %%x
pause
The above code will display the item names copied to context menu without any issues unless there's an exclamation mark in file name,
May I please know how can I print filenames including exclamation marks (!) as well (eg: name!file.txt)
Thanks
ENABLEDELAYEDEXPANSION exclamation mark
Moderator: DosItHelp
Re: ENABLEDELAYEDEXPANSION exclamation mark
A similar question is being discussed:viewtopic.php?f=3&t=9250
Re: ENABLEDELAYEDEXPANSION exclamation mark
Hello,
But that's about replacing the bang (!) character,
How can I include it in the echo print?
Thanks
But that's about replacing the bang (!) character,
How can I include it in the echo print?
Thanks
Re: ENABLEDELAYEDEXPANSION exclamation mark
In your example you don't need ENABLEDELAYEDEXPANSION. Try with DISABLEDELAYEDEXPANSION.
Provide an example that is closer to your real code and where we can see why you actually have trouble...
Steffen
Provide an example that is closer to your real code and where we can see why you actually have trouble...
Steffen