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