Question Shell - doesn't work

rickydalley

Member
Joined
Aug 28, 2009
Messages
24
Programming Experience
10+
Hi all.

I saw on MSDN site that Shell isn't available to compact programming.

I am wondering how I can run a program from within my vb.net program.

I'm using VS2005 and creating my program as a Windows Mobile 5.0 Pocket PC application.

I'm connecting to an SQLCompact 3.5 database and the last thing I would like to do is have a button open the phone. I found the Phone program - it's called PhoneAgent on my pocket pc.

Does anyone know how to run another program from a button press?

regards, Ricky
 
Found out how

:D

here's how

VB.NET:
System.Diagnostics.Process.Start("\Program Files\Buswork\PhoneAgent.exe", "")

That does what I want to do.

The 2nd parameter I have there is empty. If you want to pass arguments to the executing program put them in the 2nd parameter.

regards, Ricky
 
Back
Top