Ok, I think I solved the problem.
Here is my solution that seems to work. I hope this helps
someone else out there.
SOLUTION:
right-click My Computer then go to properties.
click Advanced tab then click Environment Variables
select PATH variable in User variables for X ( X = Username)
then click Edit.
copy the path of your Maya installation (C:\Program Files\Autodesk
\Maya2009\bin;) and paste. DO NOT OVERWRITE EXISTING PATHS!!!
Make sure that the path also exist in the "path" System variable - if
it's not there do the same as above.
then click OK and OK again to exit System Properties.
When you render from cmd window navigate to project path. In my case
the following:
Z:\WIL\SHOTS\067_010_fl\3D\MAYA\scenes\Royston
then type the following lines: Render -rt 8 -r mr -v 5 -s 200 -e 550 -
b 1 "Z:\WIL\SHOTS\067_010_fl\3D\MAYA\scenes
\
Royston067_010_fl_v001.19_FG.ma"
you have to put the whole path to your scene file in comma's => ( " )
for it to work as above.
-rt 8 (8 = CPU's)
-r mr (mr = mental ray)
-v 5 (5 = verbose warnings - can check the docs for all the others)
-s 200 (200 = start frame)
-e 550 (550 = end frame)
-b 1 (render by frame)
This worked for me hope is helps you.