set /p VAR=User input
for /r . %%a in (*.ma) do (
mayabatch -file %%a -command "python(""import script"" + ""\n"" + ""script.main(%VAR%)"")"
)
I'm writing a bat file to run maya batch to process a bunch of files. I need to run python code passing in an argument %VAR% How would I go about doing this?