1. BAT脚本编写 开启进程 关闭进程 编辑、保存
关闭文件的脚本
taskkill -f -im AdminServer.exe
taskkill -f -im NodeProxyConsole.exe
taskkill -f -im NodeAgent.exe
taskkill -f -im TestCP1.exe
taskkill -f -im TestCP2.exe
taskkill -f -im TestCP3.exe
taskkill -f -im DeployMonitorTool.exe
rd /Q /S “C:/EvoSphere/VirtualDesktop/Components”
说明:rd = rmdir 在 windows中【选项】前面添加’/’,而不是’-‘
del /p /f /s /q /a xxx 文件,而不能删除文件夹
cmd
help
help 命令
打开文件的脚本
start AdminServer.exe
start NodeProxyConsole.exe
start NodeAgent.exe
//需要将这个bat放入到exe所在的目录下