Why have you chosen to use & characters within your command? That would
treat each part between them as it's own command. Hence the reason the
interpreter is telling you that -batch is not a command. Can you just
remove the & chars?

On Sat, 9 May 2015 11:11 AM Benjam901 <[email protected]> wrote:

> Hello all,
>
> I am having some solid issues with my .bat file, I am setting all my
> pathing in the .bat file and then at the end of the file running:
>
> "C:\Program Files\Autodesk\Maya%MAYA_VERSION%\bin\maya.exe" & -batch &
> -script & C:\temp\foo.mel
>
> I get the cmd line errors: -batch is not recognized as an internal or
> external command
>
> This is very odd though as running maya.exe by itself works just fine and
> if I use the command line I can run the command maya -batch -script
> c:\temp\foo.mel and it will run just fine.
>
> Am I missing something in my command line execution?
>
> Any help would be much appreciated.
>
> Cheers,
>
> Ben
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/7ff86b60-74fc-4ea8-9089-60d2b6382ef9%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/7ff86b60-74fc-4ea8-9089-60d2b6382ef9%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2LQh1EY-1i7NkUgZavr_ErncmmJbHMjxcmqTaZvoXVPg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to