Will save testfile.mb in "C:/Documents and Settings/Administrator/My Documents/maya/projects/default/mb/"
instead of "$(CURRENTDIR)/mb/", which is, IMHO, more sensible behaviour.
Is there any way of getting maya to not behave like this without resorting to using absolute paths? I really don't want to use absolute paths as that just plain sucks for various reasons.
Mayabatch works exactly like a normal maya does. Its project directory is defined to the same default as a normal maya. So yes and no its a smarter way to work, because thetway youd be in same kind of environ as in maya, on the drwaback you have this problem.
But you cab specify the current project with the -proj flag.
For example in tested in zsh theese 2 methods work:
mayabatch -proj $PWD ...
or alternatively
mayabatch -proj pwd ...
most other unix type shells have similliar batcticking oprations and system var stuff so ithis would be the methodology id use in linux and osx
On windows the sytem war is named cd so
mayabatch -proj "%cd%" ...
its quoted because otherwise maya would get the wrong end of the stick if your path had space in its name
from the error it seems your passing one extra quotation mark (") sequnce wich may be caused by teh fact that pwd might return a allready quoted string in wich case youd have on extra quote around. Or alternatively msys want you to use ' quotes instead of " quotes.