windows下批處理

@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窗口關閉移動

相關文章
相關標籤/搜索