taskkill -f -im server.exe
set cmdpath=%1%
copy  /y  %cmdpath%\server.exe  %cmdpath%\server.exe.bak
copy  /y  %cmdpath%\updatetmp\server.exe  %cmdpath%\server.exe
copy  /y  %cmdpath%\updatetmp\checkdb.bat  %cmdpath%\checkdb.bat
start %cmdpath%\server.exe
exit