C# Programming
06-12-2009, 04:51 PM
Hi,
The code below is a summary of what I have developed which returns 0 or 1 for intResult to indicate a success or failure.
How do I obtain the returned value from within the script when the script is executed?
I think this is to do with altaring the "Create" word in the code below.
Any thoughts please?
Thanks
System.Management.ManagementPath path = new System.Management.ManagementPath("Win32_Process");
object[] methodArgs = { "cscript.exe \\machinename\c$\scriptname.vbs", null, null, 0 };
intResult = (uint)processClass.InvokeMethod("Create", methodArgs);
The code below is a summary of what I have developed which returns 0 or 1 for intResult to indicate a success or failure.
How do I obtain the returned value from within the script when the script is executed?
I think this is to do with altaring the "Create" word in the code below.
Any thoughts please?
Thanks
System.Management.ManagementPath path = new System.Management.ManagementPath("Win32_Process");
object[] methodArgs = { "cscript.exe \\machinename\c$\scriptname.vbs", null, null, 0 };
intResult = (uint)processClass.InvokeMethod("Create", methodArgs);