cmd命令运行jar包
?????? 開發中需要反復的清除服務器端數據,而客戶端用的是android,每次清除數據麻煩。所以用了一個批處理來執行:
方式一,直接寫死:
echo off
echo ***********begin***********
echo type list:
echo???? 1: Contact
echo???? 2: Album
echo???? 3: Folder
echo???? 4: MailProxy
echo ***********end**************
set deviceid=88888888888
set type=4
java -jar Clean.jar %deviceid% %type%
?
?
方式二,動態輸入:
?
echo off
echo ***********begin***********
echo type list:
echo???? 1: Contact
echo???? 2: Album
echo???? 3: Folder
echo???? 4: MailProxy
echo ***********end**************
set /p deviceid=Please input the deviceid:
echo %deviceid%
set /p type=Please input the type number:
echo %type%
java -jar MapClean_fat.jar %deviceid% %type%
?
?
轉載于:https://www.cnblogs.com/KiloNet/archive/2010/12/14/1905566.html
總結
以上是生活随笔為你收集整理的cmd命令运行jar包的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: (jQuery,YUI)哪一个适合我?
- 下一篇: PMWiki安装教程