PDA

View Full Version : HiddenDOSCommand in dotnet?


Gravey
03-09-2009, 11:32 AM
anyone know what the equivalent of HiddenDOSCommand is in .NET ?
HiddenDOSCommand is giving me errors. The command string is fine

ZeBoxx2
03-09-2009, 12:13 PM
start here...
http://www.thescarms.com/dotnet/Process.aspx

Read down to...
"Start an invisible process."

should be pretty self-explanatory :)

PiXeL_MoNKeY
03-09-2009, 02:40 PM
anyone know what the equivalent of HiddenDOSCommand is in .NET ?
HiddenDOSCommand is giving me errors. The command string is fineWith 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\to\application\"My 3dsmaxcmd.exe HiddenDOSCommand is:sPath = (getDir #maxroot)
sParam = "-submit"
HiddenDOSCommand ("3dsmaxcmd.exe "+sParam) startPath:sPath-Eric

Gravey
03-09-2009, 03:37 PM
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...

JHaywood
03-10-2009, 05:30 PM
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).

CGTalk Moderation
03-10-2009, 05:30 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.