Talstra

Talstra

Shifting Focus...

Array

Batch Scripts 

CHECK IF MAYA And CLOSE

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

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

endlocal
Share this Doc

CHECK IF MAYA And CLOSE

Or copy link

CONTENTS
Chat Icon Close Icon