?
Solved

.NET Compact Framework replacement for VB's shell

Posted on 2004-10-25
4
Medium Priority
?
400 Views
Last Modified: 2007-12-19
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.
0
Comment
Question by:owigg
  • 2
  • 2
4 Comments
 
LVL 34

Expert Comment

by:flavo
ID: 12398239
did you try microsoft.VisualBasic.Shell ??

Dave
0
 

Author Comment

by:owigg
ID: 12406033
Thanks Dave, yeah I did, Its not supported in the Compact Framework.
0
 
LVL 34

Accepted Solution

by:
flavo earned 375 total points
ID: 12406085
if you want to open a file in the default app maybe try

System.Diagnostics.Process.Start(FilePath)
0
 

Author Comment

by:owigg
ID: 12418968
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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
How to fix display issue, screen flickering issue when I plug in power cord to the machine. Before I start explaining the solution lets check out once the issue how it looks like after I connect the power cord. most of you also have faced this…
Is your organization moving toward a cloud and mobile-first environment? In this transition, your IT department will encounter many challenges, such as navigating how to: Deploy new applications and services to a growing team Accommodate employee…

601 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question