我有这段代码:
@echo off
setlocal EnableDelayedExpansion
FOR /F "tokens=1,2 delims= " %%i in ( C:\folder\varibales_file.txt ) do (
set numOfFiles=%%j
pushd %%i
call :Sub !numOfFiles!
popd
)
popd
goto :EOF
:Sub numOfFiles
for /f "skip=%1 delims=" %%F in ('dir "C:\folder_path_to_delete\%%i" /b /o-d') do (
rd /s /q "C:\folder_path_to_delete\%%i\%%F"
)
我收到以下错误:“系统找不到指定的路径。” 插入“popd before goto”后发生此错误 有人知道我该如何解决它?