91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

TEST_install.bat

發布時間:2020-07-21 17:47:11 來源:網絡 閱讀:351 作者:lrtao2010 欄目:系統運維

@echo off

rem Get the current path
set I_PATH=%CD%

rem Generate configuration file
rem echo 系統安裝路徑:%I_PATH%\app > %I_PATH%\confing.txt

rem Generate the jar configuration file
echo prefix: %I_PATH%\app\test >> %I_PATH%\app\application.yml
echo pythonPath: %I_PATH%\app\test\python\python >> %I_PATH%\app\application.yml

rem Generate backup bat configuration file
echo @echo off > %I_PATH%\app\test\backup.bat
echo for /f %%%%i in (%I_PATH%\app\pid.txt) do (set PID=%%%%i) >> %I_PATH%\app\test\backup.bat
echo taskkill /T /F /PID %%PID%% >> %I_PATH%\app\test\backup.bat
echo mkdir %I_PATH%\app\test\databackup\%%1\main>> %I_PATH%\app\test\backup.bat
echo xcopy /y /s /r %I_PATH%\app\test\main %I_PATH%\app\test\databackup\%%1\main >> %I_PATH%\app\test\backup.bat
echo %I_PATH%\app\start.vbs >> %I_PATH%\app\test\backup.bat
echo exit >> %I_PATH%\app\test\backup.bat

rem Generate recovery bat configuration file
echo @echo off > %I_PATH%\app\test\recovery.bat
echo for /f %%%%i in (%I_PATH%\app\pid.txt) do (set PID=%%%%i) >> %I_PATH%\app\test\recovery.bat
echo taskkill /T /F /PID %%PID%% >> %I_PATH%\app\test\recovery.bat
echo rmdir /q /s %I_PATH%\app\test\main >> %I_PATH%\app\test\recovery.bat
echo mkdir %I_PATH%\app\test\main >> %I_PATH%\app\test\recovery.bat
echo xcopy /y /s /r %I_PATH%\app\test\temp\main %I_PATH%\app\test\main >> %I_PATH%\app\test\recovery.bat
echo rmdir /q /s %I_PATH%\app\test\temp >> %I_PATH%\app\test\recovery.bat
echo %I_PATH%\app\start.vbs >> %I_PATH%\app\test\recovery.bat
echo exit >> %I_PATH%\app\test\recovery.bat

rem Generate TEST start bat configuration file
echo @echo off >%I_PATH%\app\TEST_start.bat
echo cd %I_PATH%\app >>%I_PATH%\app\TEST_start.bat
echo set http_str=no >>%I_PATH%\app\TEST_start.bat
echo java-1.8.0_172\bin\curl -s http://127.0.0.1:8080/static/index.html ^> curl.log >>%I_PATH%\app\TEST_start.bat
echo findstr "html" curl.log ^>nul 2^>^&1 ^&^& set http_str=html >>%I_PATH%\app\TEST_start.bat
echo if %%http_str%%==html goto RUN >>%I_PATH%\app\TEST_start.bat
echo del curl.log >>%I_PATH%\app\TEST_start.bat
echo title mycmd >>%I_PATH%\app\TEST_start.bat
echo for /f "tokens=2 delims=," %%%%a in ('tasklist /v /fo csv ^^^| findstr /i "mycmd"') do (set "mypid=%%%%~a") >>%I_PATH%\app\TEST_start.bat
echo echo %%mypid%% ^> pid.txt >>%I_PATH%\app\TEST_start.bat
echo msg %%username%% /TIME:5 "您好,軟件正在啟動,請稍等..." >>%I_PATH%\app\TEST_start.bat
echo %I_PATH%\app\java-1.8.0_172\bin\java -jar %I_PATH%\app\celloud-test.jar >>%I_PATH%\app\TEST_start.bat
echo :RUN >>%I_PATH%\app\TEST_start.bat
echo del curl.log >>%I_PATH%\app\TEST_start.bat
echo msg %%username%% /TIME:5 "您好,軟件已經啟動,不需要重復開啟,謝謝合作!" >>%I_PATH%\app\TEST_start.bat

echo @echo off >%I_PATH%\app\start.bat
echo cd %I_PATH%\app >>%I_PATH%\app\start.bat
echo title mycmd >>%I_PATH%\app\start.bat
echo for /f "tokens=2 delims=," %%%%a in ('tasklist /v /fo csv ^^^| findstr /i "mycmd"') do (set "mypid=%%%%~a") >>%I_PATH%\app\start.bat
echo echo %%mypid%% ^> pid.txt >>%I_PATH%\app\start.bat
echo %I_PATH%\app\java-1.8.0_172\bin\java -jar %I_PATH%\app\celloud-test.jar >>%I_PATH%\app\start.bat

rem Generate TEST start vbs configuration file
echo Set ws = CreateObject("Wscript.Shell") >"%USERPROFILE%\Desktop\TEST_start.vbs"
echo ws.currentdirectory = "%I_PATH%\app" >>"%USERPROFILE%\Desktop\TEST_start.vbs"
echo ws.run "cmd /c %I_PATH%\app\TEST_start.bat",vbhide >>"%USERPROFILE%\Desktop\TEST_start.vbs"

echo Set ws = CreateObject("Wscript.Shell") >%I_PATH%\app\TEST_start.vbs
echo ws.currentdirectory = "%I_PATH%\app" >>%I_PATH%\app\TEST_start.vbs
echo ws.run "cmd /c %I_PATH%\app\TEST_start.bat",vbhide >>%I_PATH%\app\TEST_start.vbs

echo Set ws = CreateObject("Wscript.Shell") >%I_PATH%\app\start.vbs
echo ws.currentdirectory = "%I_PATH%\app" >>%I_PATH%\app\start.vbs
echo ws.run "cmd /c %I_PATH%\app\start.bat",vbhide >>%I_PATH%\app\start.vbs

rem Generate desktop shortcuts
set lnkdir="%USERPROFILE%\Desktop"
echo [InternetShortcut] >%lnkdir%\TEST_app.url
echo URL="http://127.0.0.1:8080/static/index.html" >>%lnkdir%\TEST_app.url

rem delete install.bat
del %I_PATH%\install.bat

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

通榆县| 广东省| 长寿区| 甘谷县| 十堰市| 梁山县| 忻城县| 云阳县| 松滋市| 宣汉县| 龙胜| 炎陵县| 额济纳旗| 永丰县| 禄丰县| 金秀| 北票市| 玛沁县| 巴林左旗| 巴楚县| 鄂尔多斯市| 白城市| 广德县| 桑植县| 邓州市| 高清| 阳高县| 定襄县| 峨山| 子洲县| 汝南县| 东光县| 景谷| 淮安市| 定西市| 云浮市| 黄浦区| 富顺县| 天镇县| 和林格尔县| 汉源县|