- @echo off
- :loop
- set action=
- set /p action=请输入命令:
- call :%action%
- goto loop
-
- :start
- if "%~1"=="" goto :eof
- start cmd /c "%~n1.bat"
- shift
- goto start
-
- :stop
- if "%~1"=="" goto :eof
- set title=%~n1
- set title=Router%title:~-1%
- taskkill /f //fi "imagename eq cmd.exe" /fi "windowtitle eq %title%"
- shift
- goto stop
复制代码
|