SetLocal EnableDelayedExpansion
echo off
for /r %%f in (myfiles.*) do (
REM echo %%~nxf
set filename=%%~nxf
@echo !filename!
)
echo on
위와 같이 하면 된다.
참고)
http://stackoverflow.com/questions/1556 ··· variable
SetLocal EnableDelayedExpansion
echo off
for /r %%f in (myfiles.*) do (
REM echo %%~nxf
set filename=%%~nxf
@echo !filename!
)
echo on