Batch rendering -with Maya ".bat" file not working

Hello,

is there any other Vray software tool like a Render Slave, I need to activate?

I have this content in the .bat file (and tried different versions:
“C:\Program Files\Autodesk\Maya2018\bin\Render.exe” Render -r vray -s 1055 -e 1056 -cam “Mov1” “E:\MAYA_folder\scenes\my-render-file”

The terminal window opens and closes after 2 seconds, that’s all…:wink:

Thanks,
Ben

Try and add a new line at the end of your .bat and just write pause. This will prevent the terminal from auto-closing and you can see if there’s any messages from Maya.
At a first glance, I think you need to remove ‘Render’ after ‘Render.exe’. So this line should in theory work:
“C:\Program Files\Autodesk\Maya2018\bin\Render.exe” -r vray -s 1055 -e 1056 -cam “Mov1” “E:\MAYA_folder\scenes\my-render-file”

Thanks,
I removed “Render”, no success.
I tried “pause” but it just waits until I press a button.
There came no messages from Maya…

Just for sanity (not sure if upper or lower case matters) have you tried

“C:\Program Files\Autodesk\Maya2018\bin\render.exe”

instead of

“C:\Program Files\Autodesk\Maya2018\bin\Render.exe”

Also test it without the resolution override, and make sure you include the “.mb” at the end of your file name.

Try this way, seems to me that Windows fails reading the Render.exe path because of the space between “Program” and “Files”

“%PROGRAMFILES%\Autodesk\Maya2018\bin\Render.exe” -r vray -s 1055 -e 1056 -cam “Mov1” “E:\MAYA_folder\scenes\my-render-file.mb”

…deleted

Thanks, then it gives me a path error. This is the exactly the file path, that I also get from the windows explorer.
I will make a simple test scene next week, maybe once also trying for comparison what maya2017 with the old vray is doing…

There is a space in Render.e xe - the forum didn’t allow me to remove it for some reason?

Apart from that - the path is correct, but you might still need to escape spaces in Batch. It’s possible that you are missing some variables - what’s the output of the following in CMD set | findstr /B "ProgramFiles="
Should be ProgramFiles=C:\Program Files