@echo off
cd /d %~dp0
del WaxJet400.exe
del WaxJet350.exe

::if exist waxjet.db (
::	copy waxjet.db  config
::	del  waxjet.db
::)
if exist WaxJet.7z (
	taskkill /im multiJetSlicer.exe /f
	taskkill /im WaxJet.exe /f
	TASKKILL /F /IM WaxJet.exe

	7z\7za.exe x  WaxJet.7z  -o. -aoa
	ping 127.0.0.1 -n 1
	start WaxJet.exe  updateSuccess
	del WaxJet.7z
	exit 0
)
if exist MultiJetSlicer.7z (
	taskkill /im multiJetSlicer.exe /f
	taskkill /im WaxJet.exe /f
	TASKKILL /F /IM WaxJet.exe

	7z\7za.exe x  MultiJetSlicer.7z  -o. -aoa
	ping 127.0.0.1 -n 1
	start WaxJet.exe  updateSuccess
	del MultiJetSlicer.7z
	exit 0
)


start WaxJet.exe 