Re: Invoking a process on the remote machine

From: Nicholas Paldino [.NET/C# MVP] (mvp_at_spam.guard.caspershouse.com)
Date: 05/07/04


Date: Fri, 7 May 2004 09:03:00 -0400

Nidhee,

    You can not just run a program of your choosing on a remote machine.
You need to have some sort of environment to run it in. Basically, the only
way you are going to be able to run a program on the machine is if you have
another program already running on the machine (which has a login), that
will run the program on the machine for you.

    Basically, you should create a service (or a serviced component which
can be called to) which exposes an object which will take the name of the
program that you want to run and then run it.

    Hope this helps.

-- 
               - Nicholas Paldino [.NET/C# MVP]
               - mvp@spam.guard.caspershouse.com
"Nidhee Pathak via .NET 247" <anonymous@dotnet247.com> wrote in message
news:ugkz29%23MEHA.808@tk2msftngp13.phx.gbl...
> Hi,
>
> I am trying to run an exe present on the remote machine using the
ManagementClass object. I connect to the remote machine using
ObjectManagementScope class, but i am not being able to run the exe through
normal Win32 process. How should I go about it?
> --------------------------------
> From: Nidhee Pathak
>
> -----------------------
> Posted by a user from .NET 247 (http://www.dotnet247.com/)
>
> <Id>s3QhesQMJ0O24aiIcMmT+w==</Id>


Relevant Pages

  • Re: Object Reference Counting
    ... for whether you can use a *.bas Module or require the ROT is whether you're ... in a single-threaded environment or a multi-threaded environment. ... EXE would be single, an ActiveX EXE may be single or multiple, DLLs may be ... >> The problem I now have is to do with object reference counting. ...
    (microsoft.public.vb.com)
  • Re: Help in remoting !
    ... > In my project I want to execute some commands on the remote machine. ... My server which is an exe is copied on ...
    (microsoft.public.dotnet.framework)
  • Re: Help in remoting !
    ... > In my project I want to execute some commands on the remote machine. ... My server which is an exe is copied on ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Help in remoting !
    ... > In my project I want to execute some commands on the remote machine. ... My server which is an exe is copied on ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Help in remoting !
    ... > In my project I want to execute some commands on the remote machine. ... My server which is an exe is copied on ...
    (microsoft.public.dotnet.general)

Quantcast