[Closed] HiddenDOSCommand in dotnet?
anyone know what the equivalent of HiddenDOSCommand is in .NET ?
HiddenDOSCommand is giving me errors. The command string is fine
With HiddenDOSCommand you need to define your startpath parameter as the folder from which the dos application will be run. I use this to submit Backburner jobs, but it will error unless I have assigned the startpath parameter to the Max root. So it should be something like:
HiddenDOSCommand ("application.exe -param1") startpath:"C:\path o\application\"
My 3dsmaxcmd.exe HiddenDOSCommand is:
sPath = (getDir #maxroot)
sParam = "-submit"
HiddenDOSCommand ("3dsmaxcmd.exe "+sParam) startPath:sPath
-Eric
start here…
http://www.thescarms.com/dotnet/Process.aspx
Read down to….
“Start an invisible process.”
should be pretty self-explanatory
Hey Richard, thanks for the link. The whole Process thing is kinda confusing (at least to me). Anyway I’ll look into it more later as I discovered I had made a stupid typo… Instead of using startpath: i wrote startdir: !!!
so you were right Eric, using startpath fixes the problem. I thought i was using startpath but i was only looking in the command string for typos…
The nice thing about starting a process using dotNet is that you can redirect the output to a textbox so that you can actually see the results of the process as it’s running (if there are any to show).