Talstra

Talstra

Shifting Focus...

Array

Batch Scripts 

Close Unity

Estimated reading: 1 minute 126 views Contributors
@echo off
setlocal

REM Check if Unity is running in batch mode
tasklist /FI “IMAGENAME eq Unity.exe” 2>NUL | find /I /N “Unity.exe”>NUL
if “%ERRORLEVEL%”==”0” (
REM Unity is running, so let’s close it
taskkill /F /IM Unity.exe
echo Unity has been closed.
) else (
echo Unity is not currently running.
)

endlocal
Share this Doc

Close Unity

Or copy link

CONTENTS
Chat Icon Close Icon