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