1 2 3 4 5 6 |
setlocal set CMD=dir /B *.txt set FILENAME= for /f "usebackq delims=" %%a in (`%CMD%`) do set FILENAME=%%a echo %FILENAME% endlocal |
1 2 3 4 5 6 |
setlocal set CMD=dir /B *.txt set FILENAME= for /f "usebackq delims=" %%a in (`%CMD%`) do set FILENAME=%%a echo %FILENAME% endlocal |