I have this code for looping over MP4 files in a directory:
for /f "tokens=*" %%f in ('dir /b .*.mp4') do (
call :processing "%%~nxf"
)
my problem is that If the MP4 file name has the “!” character in it, the %%f value will have all characters except “!”. For some reason the “!” character is getting stripped out. If you execture the dir command of the for loop directly, the “!” character prints in the shell.
Any thoughts why the “!” is missing?
thanks!