C:\patch>ren "C:\patch\Bin" "C:\patch\bin" Ошибка в синтаксисе команды.
for /f "tokens=*" %f in ('dir /l /b /s "C:\patch\*"') do echo "%~ff" "%%~nxf"
dir /l /b /s "C:\patch\*">filelist.txt for /f %%f in (filelist.txt) do echo "%%~ff" "%%~nf%%~xf"
C:\app\patch>for %f in ("C:\patch\report.txt") do echo "%~nxf" C:\app\patch>echo "report.txt" "report.txt" C:\app\patch>echo >C:\patch\RePoRt.TxT C:\app\patch>for %f in ("C:\patch\report.txt") do echo "%~nxf" C:\app\patch>echo "RePoRt.TxT" "RePoRt.TxT"
for /f "Tokens=*" %%F in ('dir /l /b /s "C:\patch\*"') do FOR %%I in ("%%F") DO echo "%%F" "%%~nxI"