Remotly run an exe

  • Thread starter Thread starter Tomer
  • Start date Start date
T

Tomer

How can run an application from a ppc that connects to a pc by RF?

Do I need a pc application that listens to a certain port? if so, where can
I get help on constructing this app?

Thanks.
 
Where does the application run? On whatever device you want to run the
application, you'll need someone to launch that application, yes. If you
are trying to run the application on the PPC from the PC and are connected
with ActiveSync, you can use the Remote API to launch a program on the PPC.
If you are trying to start something on the PC, you'll have to create a Web
service, a socket program, something to hear the command from the PPC and
act on it (this is a security hole, so nothing is already running that will
handle this for you).

Paul T.
 
Hi Paul,
I need to run an app on the pc from the ppc.

Where can I find help on how to create this web service or a socket program?

Thanks.
 
Well, you might search on MSDN. msdn.microsoft.com. Visual Studio.NET 2003
can create a nice Web service for you (you'd have to be running the
Microsoft Web server, IIS, on that machine to use it, of course). Socket
programming, if you are going to be using .NET, is pretty well covered in
the VS.NET help, too. Can I assume that you *are* in possession of that
version of Visual Studio and intend to use it for the programs both on the
PPC and the PC?

Maybe, also, before you fly off and do that, you should tell us what you're
trying to do, rather than how you're going to do it, just so we can be sure
it's the right way. Why does this program on the PC need to be run, for
example? Why under the control of the PPC and not always?

Paul T.
 
Paul has a point there Tomer. Assuming the ppc is not wireless enabled, the
application would have to be fired only when the ppc is in the cradle. Seems
like a strange thing to do. When in the cradle, I would think the better
option would be for the user to launch the desktop application from the
desktop itself.

Then you can look at the opennetcf.org site for their communications library
to figure out communications basics. A windows service listening for a
command or a web service could do the job of handling a program launch
command from the pocket pc. Depends really on what you are trying to do in
your application.
 
Back
Top