running remote process
- From: jdrott1 <jonathandrott@xxxxxxxxx>
- Date: Tue, 26 Aug 2008 12:44:58 -0700 (PDT)
vb group said this would work, but it only starts the program locally.
System.Diagnostics.Process.Start(
"Y:\ilsa\web\iweb.exe")
so, i've got all this long wmi connection code that i won't bore you
with. it is accessing the remote computer because i see a wmi process
running on the remote. this still only starts my program locally.
were might i have missed something?
'Get an input parameters object for this method
Dim inParams As ManagementBaseObject
inParams = processClass.GetMethodParameters(
"Create")
'Fill in input parameter values
inParams(
"CommandLine") = "iweb.exe"
'Execute the method
Dim outParams As ManagementBaseObject
outParams = processClass.InvokeMethod(
"Create", _
inParams,
Nothing)
'Display results
'Note: The return code of the method is provided
'in the "returnValue" property of the outParams object
Console.WriteLine(
"Creation of calculator " & _
"process returned: {0}", outParams("returnValue"))
Console.WriteLine(
"Process ID: {0}", _
outParams(
"processId"))
End
.
- Prev by Date: Re: WMI difference between the classes
- Next by Date: RE: How can I read the Registry with WMI.NET?
- Previous by thread: WMI difference between the classes
- Next by thread: RE: How can I read the Registry with WMI.NET?
- Index(es):