Hi,
Think this is a bug with regard the number of arguments being passed and I’m getting an exception when I try to execute. Quite simply, the “SpawnProcess” command can take 1 or more arguments. However, according to the manual, it should be able to take 4 arguments as below:
Process SpawnProcess( string executable, string arguments, string workingDirectory, ProcessWindowStyle windowStyle )
However this fails and you MUST quote the 5th argument, ie: the boolean value for “redirectStdOutput”, even if it is set to False and hence you don’t want to use it.
ie: this works fine:
Process SpawnProcess( string executable, string arguments, string workingDirectory, ProcessWindowStyle windowStyle, bool redirectStdOutput )
I was scratching my head on this one, but I think its a bug or just the manual needs updating…(I also cross-referenced the PF online manual and also the TB site)
Thanks,
Mike