@echo off if exist !!STARTUP_lock.dat ( echo "We are locked by computer:" type !!STARTUP_lock.dat echo "" echo "Close this window to abort running" echo "... or hit a key to run anyway ..." echo "" pause ) echo %COMPUTERNAME% > !!STARTUP_lock.dat del PrismLauncher*.log start PowerShell.exe -windowstyle hidden -command "Start-Process -FilePath .\PrismLauncher.exe -Wait; del !!STARTUP_lock.dat" ::END