@echo off
ping -n 2 127.0.0.1>nul
set PATH=%cd:~0,3%
echo %PATH%
for /f "tokens=*" %%i in ('dir %PATH%upgradefiles /b') do (
move "%PATH%upgradefiles\%%i" "%PATH%"
echo "move" "%PATH%upgradefiles\%%i" "%PATH%"
).net
start %PATH%evc.exetoken
pauseget
sleep使用ping去实现,ping两次cmd
upgradefiles是我要移动的目录class
start 启动exe文件命令file
pause不让cmd窗口关闭移动