@echo off
tasklist | find /i "Box.Applications.Synk.Loader.exe" && taskkill /im Box.Applications.Synk.Loader.exe /F || echo process "Box.Applications.Synk.Loader.exe" not running.
tasklist | find /i "Box.Applications.Synk.exe" && taskkill /im Box.Applications.Synk.exe /F || echo process "Box.Applications.Synk.exe" not running.
TIMEOUT /T 2 /NOBREAK
del %1\version.json >NUL 2>&1
move %1\*.* %2 >NUL 2>&1
rmdir %1\ >NUL 2>&1
echo on