.NET Compact Framework replacement for VB's shell

Hi Experts,

I have a .NET application that runs on PocketPC and CE.NET devices. I am checking to see whether the device was hard reset (system time < last time program ran) and if this is the case i want to execute the control panel to change the system date and time using " ctlpnl.exe \windows\cplmain.cpl,13 ". The problem is that I cannot find the API call that replaces VB's Shell() in .NET or at least another method of executing an outside application on the Compact Framework.

Cheers,

Owen W.
owiggAsked:
Who is Participating?
 
flavoCommented:
if you want to open a file in the default app maybe try

System.Diagnostics.Process.Start(FilePath)
0
 
flavoCommented:
did you try microsoft.VisualBasic.Shell ??

Dave
0
 
owiggAuthor Commented:
Thanks Dave, yeah I did, Its not supported in the Compact Framework.
0
 
owiggAuthor Commented:
System.Diagnostics.Process isnt part of the Compact Framework either but thankfully the OpenNETCF Smart Device Framework has implemented the missing class. Thanks Dave.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.