где мне найти информацию по данному вопросу
set /?
if /?
…for %%F in (*.pdf) do (
set "old_name=%%~nF"
set "new_name=%%~nF"
call :SUB
)
exit /b
:SUB
set "ch=%new_name:~0,1%"
if "%ch%" geq "0" if "%ch%" leq "9" (
set "new_name=%new_name:~1%"
goto SUB
)
if not "%new_name%" == "%old_name%" ren "%old_name%.pdf" "%new_name%.*"
exit /b