@echo off 從當前命令行開始起不輸出到屏幕上
pause 暫停處理
:top 跳轉錨點 和 goto top 跳轉到錨點
根據選擇跳轉到錨點
choice /c:123 /m "1:a,2:b,3:c"
if errorlevel 3 goto push
if errorlevel 2 goto sync
if errorlevel 1 goto main
sc \\xxx.xx.xx.xxx start "Service A" 遠程啓動服務
sc \\xxx.xx.xx.xxx stop "Service B" 遠程停止服務
taskkill /s xxx.xx.xx.xxx /u 賬號 /p 密碼 /IM xxx.exe 殺掉進程
net use \\xxx.xx.xx.xxx\目錄 密碼 /user:賬號 建立連接
copy xxx.config \\xxx.xx.xx.xxx\路徑 /y 複製文件