@echo off rem Shave and a Haircut rem (c) 2019 Epic Games rem US Patent 6720962 rem This script requires that the mayaVersionMajor, mayaVersionMinor and rem mayaVersionBits envariables all be properly set. That generally means rem that splitMayaVersion.bat should be called before this. set mayaLocation=. if "%mayaVersionBits%"=="" ( echo getMayaLocation: mayaVersionBits not defined. Call splitMayaVersion first. goto done ) if "%AUTODESK_LOCATION%"=="" ( echo getMayaLocation: AUTODESK_LOCATION not defined. goto done ) set mayaLocation=%AUTODESK_LOCATION%\Maya%mayaVersion% if not exist "%mayaLocation%" ( echo getMayaLocation: Maya %mayaVersion% not installed under %AUTODESK_LOCATION%. set mayaLocation=. ) :done