psexec.exe工具:
https://blog.csdn.net/feier7501/article/details/8841756
https://www.cnblogs.com/boltkiller/articles/4791307.html
https://www.cnblogs.com/sela/p/5506531.html
https://blog.csdn.net/feier7501/article/details/8847172
問題背景:
自動化部署之前一直都是linux文件互傳或者linux和windows之間,現在有一個windows到windows的,在網上一直沒有合適的方案。
解決方案:
1、使用python命令使局域網其他機器可以訪問jar包所在機器(A機器)
2、在服務器(B機器)上使用start http://192.168.207.39/exp_server-1.0.zip命令下載該應用包(也可以直接在A機器上使用psexec.exe工具連接B機器的cmd執行start http://192.168.207.39/exp_server-1.0.zip命令)
3、啟動對應jar
#啟動chrome瀏覽器指定網址 start "C:\Program Files\Google\Chrome\Application\chrome.exe" http://www.weibo.com/ #默認瀏覽器打開網站 start iexplore.exe www.baidu.com 或者 start www.baidu.com #使用IE打開指定網址 explorer http://www.weibo.com