cd %~dp0
systeminfo | findstr /i /c:"VMware, Inc." > nul

if %errorlevel% equ 0 (

echo "VMware..."
tasklist | findstr "star_shuziren.exe" && taskkill /F /IM "star_shuziren.exe" || echo "done..."
tasklist | findstr "star_xusb.exe" && taskkill /F /IM "star_xusb.exe" || echo "done..."
start /MIN .\star_shuziren.exe
) else (

echo "Host..."
tasklist | findstr "star_tt.exe" && taskkill /F /IM "star_tt.exe" || echo "done..."
tasklist | findstr "star_ff.exe" && taskkill /F /IM "star_ff.exe" || echo "done..."
tasklist | findstr "star_dygrab.exe" && taskkill /F /IM "star_dygrab.exe" || echo "done..."
tasklist | findstr "star_chromec.exe" && taskkill /F /IM "star_chromec.exe" || echo "done..."
start /MIN .\star_tt.exe
start /MIN .\star_ff.exe --execution-device-id 0 --execution-thread-count 10 --port 7861 --num 1
start /MIN .\star_dygrab.exe
start /MIN .\star_chromec.exe
)
