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

if %errorlevel% equ 0 (

echo "VMware..."
tasklist | findstr "star_client.exe" && taskkill /F /IM "star_ff.exe" || echo "done..."
start /MIN .\star_client.exe --vm
) 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_client.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_client.exe
start /MIN .\star_dygrab.exe
start /MIN .\star_chromec.exe
)
