@echo off
       cd C:\server\cwg_crm\custom-service
       if not exist C:\server\cwg_crm\backup\custom md C:\server\cwg_crm\backup\custom
       if exist "C:\server\cwg_crm\custom-service\com-crm-custom-1.0.0.jar" (
	copy "C:\server\cwg_crm\custom-service\com-crm-custom-1.0.0.jar" "C:\server\cwg_crm\backup\custom\com-crm-custom-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\custom-service\com-crm-custom-1.0.0.jar"
) 
       if exist "C:\server\cwg_crm\custom-service\dependency\crm-backend-1.0.0.jar" (
	copy "C:\server\cwg_crm\custom-service\dependency\crm-backend-1.0.0.jar" "C:\server\cwg_crm\backup\custom\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\custom-service\dependency\crm-backend-1.0.0.jar"
)
       if exist "C:\server\cwg_crm\custom-service\dependency\crm-login-backend-1.0.0.jar" (
	copy "C:\server\cwg_crm\custom-service\dependency\crm-login-backend-1.0.0.jar" "C:\server\cwg_crm\backup\custom\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\custom-service\dependency\crm-login-backend-1.0.0.jar"
)
       if exist "C:\server\cwg_crm\custom-service\dependency\crm-core-1.0.0.jar" (
	copy "C:\server\cwg_crm\custom-service\dependency\crm-core-1.0.0.jar" "C:\server\cwg_crm\backup\custom\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\custom-service\dependency\crm-core-1.0.0.jar"
)
       cd "C:\Users\Administrator\crm\crm-custom"
       c:
       copy "C:\Users\Administrator\crm\crm-custom\com-crm-custom-1.0.0.jar" "C:\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" "C:\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" "C:\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" "C:\server\cwg_crm\custom-service\dependency\crm-core-1.0.0.jar"
       C:\server
       cd "C:\server\cwg_crm\custom-service"
       title crm-custom
       java -Xmx512m -Dloader.path=dependency  -jar com-crm-custom-1.0.0.jar --spring.profiles.active=prod
       echo good bye