
@echo off
       cd C:\server\cwg_crm\manager-service
       if not exist C:\server\cwg_crm\backup\manager md C:\server\cwg_crm\backup\manager
       if exist "C:\server\cwg_crm\manager-service\com-crm-manager-1.0.0.jar" (
	copy "C:\server\cwg_crm\manager-service\com-crm-manager-1.0.0.jar" "C:\server\cwg_crm\backup\manager\com-crm-manager-1.0.0-%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%.jar"
	del "C:\server\cwg_crm\manager-service\com-crm-manager-1.0.0.jar"
) 
       if exist "C:\server\cwg_crm\manager-service\dependency\crm-backend-1.0.0.jar" (
	copy "C:\server\cwg_crm\manager-service\dependency\crm-backend-1.0.0.jar" "C:\server\cwg_crm\backup\manager\crm-backend-1.0.0-%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%.jar"
	del "C:\server\cwg_crm\manager-service\dependency\crm-backend-1.0.0.jar"
)
       if exist "C:\server\cwg_crm\manager-service\dependency\crm-login-backend-1.0.0.jar" (
	copy "C:\server\cwg_crm\manager-service\dependency\crm-login-backend-1.0.0.jar" "C:\server\cwg_crm\backup\manager\crm-login-backend-1.0.0-%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%.jar"
	del "C:\server\cwg_crm\manager-service\dependency\crm-login-backend-1.0.0.jar"
)
       if exist "C:\server\cwg_crm\manager-service\dependency\crm-core-1.0.0.jar" (
	copy "C:\server\cwg_crm\manager-service\dependency\crm-core-1.0.0.jar" "C:\server\cwg_crm\backup\manager\crm-core-1.0.0-%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%.jar"
	del "C:\server\cwg_crm\manager-service\dependency\crm-core-1.0.0.jar"
)
       cd "C:\Users\Administrator\crm\crm-manager"
       c:
       copy "C:\Users\Administrator\crm\crm-manager\com-crm-manager-1.0.0.jar" "C:\server\cwg_crm\manager-service\com-crm-manager-1.0.0.jar"
       copy "C:\Users\Administrator\crm\crm-manager\dependency\crm-backend-1.0.0.jar" "C:\server\cwg_crm\manager-service\dependency\crm-backend-1.0.0.jar"
       copy "C:\Users\Administrator\crm\crm-manager\dependency\crm-login-backend-1.0.0.jar" "C:\server\cwg_crm\manager-service\dependency\crm-login-backend-1.0.0.jar"
       copy "C:\Users\Administrator\crm\crm-manager\dependency\crm-core-1.0.0.jar" "C:\server\cwg_crm\manager-service\dependency\crm-core-1.0.0.jar"
       cd C:\server\cwg_crm\manager-service
       title manager
       java -Xmx2048m  -Dloader.path=dependency -jar com-crm-manager-1.0.0.jar --spring.profiles.active=prod
       echo good bye