ENABLEDELAYEDEXPANSION exclamation mark
Posted: 30 Aug 2019 00:49
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
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