- 【.cmd】 バッチファイルスクリプト %11 【.bat】©2ch.net
670 :デフォルトの名無しさん[sage]:2016/10/14(金) 03:24:46.91 ID:onADalnL - set "fname=*hoge.txt" & set b=-1
setlocal enabledelayedexpansion :x if not "!fname:~%b%,1!" == "*" set /a b-=1 & goto x endlocal & set /a b=%b%+1 for %%a in ("%fname%") do set "c=%%~nxa" & call echo "%%c:~0,%b%%%"
|