| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- @echo off & setlocal enabledelayedexpansion
- ::ipconfig>ip.txt
-
-
- netstat -aon |findstr :8000>pid.txt
-
- for /f "delims=" %%a in (pid.txt) do (
-
- for /f "tokens=1* delims=:" %%i in ('call echo %%a^|find /i "TCP"') do (
- echo %%a
- ::��ȡ�����ݹ��˺�,д����һ�����±���
- rem Echo %%a>>"text.txt"
- )
- )
- rem ��ȡ�ļ�������
- set /P OEM=<pid.txt
-
- rem ��ȡ�ļ��е��ַ���
-
- echo %OEM:~71,76%
-
- taskkill /f /pid %OEM:~71,76%
- @echo off
- cd D:\server\cwg_crm\custom-service
- D:
- if not exist D:\server\cwg_crm\backup\custom\%date:~10,4%%date:~4,2%%date:~7,2% md D:\server\cwg_crm\backup\custom\%date:~10,4%%date:~4,2%%date:~7,2%
- if exist "D:\server\cwg_crm\custom-service\com-crm-custom-1.0.0.jar" (
- copy "D:\server\cwg_crm\custom-service\com-crm-custom-1.0.0.jar" "D:\server\cwg_crm\backup\custom\%date:~10,4%%date:~4,2%%date:~7,2%\com-crm-custom-1.0.0-%date:~10,4%%date:~4,2%%date:~7,2%%time:~0,2%%time:~3,2%%time:~6,2%.jar"
- del "D:\server\cwg_crm\custom-service\com-crm-custom-1.0.0.jar"
- )
- if exist "D:\server\cwg_crm\custom-service\dependency\crm-backend-1.0.0.jar" (
- copy "D:\server\cwg_crm\custom-service\dependency\crm-backend-1.0.0.jar" "D:\server\cwg_crm\backup\custom\%date:~10,4%%date:~4,2%%date:~7,2%\crm-backend-1.0.0-%date:~10,4%%date:~4,2%%date:~7,2%%time:~0,2%%time:~3,2%%time:~6,2%.jar"
- del "D:\server\cwg_crm\custom-service\dependency\crm-backend-1.0.0.jar"
- )
- if exist "D:\server\cwg_crm\custom-service\dependency\crm-login-backend-1.0.0.jar" (
- copy "D:\server\cwg_crm\custom-service\dependency\crm-login-backend-1.0.0.jar" "D:\server\cwg_crm\backup\custom\%date:~10,4%%date:~4,2%%date:~7,2%\crm-login-backend-1.0.0-%date:~10,4%%date:~4,2%%date:~7,2%%time:~0,2%%time:~3,2%%time:~6,2%.jar"
- del "D:\server\cwg_crm\custom-service\dependency\crm-login-backend-1.0.0.jar"
- )
- if exist "D:\server\cwg_crm\custom-service\dependency\crm-core-1.0.0.jar" (
- copy "D:\server\cwg_crm\custom-service\dependency\crm-core-1.0.0.jar" "D:\server\cwg_crm\backup\custom\%date:~10,4%%date:~4,2%%date:~7,2%\crm-core-1.0.0-%date:~10,4%%date:~4,2%%date:~7,2%%time:~0,2%%time:~3,2%%time:~6,2%.jar"
- del "D:\server\cwg_crm\custom-service\dependency\crm-core-1.0.0.jar"
- )
- cd "C:\Users\Administrator\crm\crm-custom"
- copy "C:\Users\Administrator\crm\crm-custom\com-crm-custom-1.0.0.jar" "D:\server\cwg_crm\custom-service\com-crm-custom-1.0.0.jar"
- copy "C:\Users\Administrator\crm\crm-custom\dependency\crm-backend-1.0.0.jar" "D:\server\cwg_crm\custom-service\dependency\crm-backend-1.0.0.jar"
- copy "C:\Users\Administrator\crm\crm-custom\dependency\crm-login-backend-1.0.0.jar" "D:\server\cwg_crm\custom-service\dependency\crm-login-backend-1.0.0.jar"
- copy "C:\Users\Administrator\crm\crm-custom\dependency\crm-core-1.0.0.jar" "D:\server\cwg_crm\custom-service\dependency\crm-core-1.0.0.jar"
- cd "D:\server\cwg_crm\custom-service"
- D:
- title crm-custom
- javaw -Xmx4096m -Dloader.path=dependency -jar com-crm-custom-1.0.0.jar --spring.profiles.active=prod
- echo good bye
|