Name: Anonymous 2014-05-17 17:20
I have at least one file whose filename includes at least one exclamation mark.
I'm watching the cmd.exe window, and I can see it's expanding to the correct filename, yet it keeps saying "File not found". Therefore, it must be shitting me.
The batch file is as follows:
REM @ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
ECHO started %cd% at !TIME!
@FOR /f "delims=" %%b in ('DIR /a:-d /b /s') DO (SET _temps=%%~dpb & FOR /f "tokens=3" %%c in ('DIR /a:-d /-c /s "%%b" ^| FIND "/"') DO SET _fsize=%%c & ECHO !_fsize! !_temps:%cd%\=!%%~nxb)
ECHO finished at !TIME!
I'm watching the cmd.exe window, and I can see it's expanding to the correct filename, yet it keeps saying "File not found". Therefore, it must be shitting me.
The batch file is as follows:
REM @ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
ECHO started %cd% at !TIME!
@FOR /f "delims=" %%b in ('DIR /a:-d /b /s') DO (SET _temps=%%~dpb & FOR /f "tokens=3" %%c in ('DIR /a:-d /-c /s "%%b" ^| FIND "/"') DO SET _fsize=%%c & ECHO !_fsize! !_temps:%cd%\=!%%~nxb)
ECHO finished at !TIME!