稍微修改了一下- @echo off
- cd /d "%~dp0"
- for /f "delims=" %%i in ('dir /ad /b /s ^| findstr "SavedVariables"') do (
- copy "%%i\SuperMacro.lua" "1.lua" >nul
- copy "%%i\SuperMacro.lua.bak" "1.lua.bak" >nul
- del /q "%%i" >nul
- echo "%%i"
- move "1.lua" "%%i\SuperMacro.lua" >nul
- move "1.lua.bak" "%%i\SuperMacro.lua.bak" >nul
- )
- pause
复制代码
|