?
Solved

Get the "Running Program List" in C# Compact Framework

Posted on 2004-08-29
5
Medium Priority
?
3,080 Views
Last Modified: 2012-08-13
Within a C# application running on a Pocket PC -- I would like to get a listing of the currently running applications -- i.e., the same ones that show up in the "Runnig Program List" under the "Settings"->"Memory".

Just need to stick the results into arraylist or the like -- and look for a specific application name.  Then if it's not running -- need to launch the application.
0
Comment
Question by:LanceWLarsen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 4

Expert Comment

by:NTAC
ID: 11925827
Here is something that mihgt do what you want:

                  Process[] pArray = System.Diagnostics.Process.GetProcesses();

                  bool startProc = true;
                  foreach ( Process proc in pArray)
                  {
                        if( proc.ToString().equals(yourNameYouWantToCheck) )
                        {      
                              startProc = false;
                              break;
                        }

                  }
                  if( startProc )
                System.Diagnostics.Process.Start("c:\\yourFilename.exe");
0
 
LVL 4

Expert Comment

by:NTAC
ID: 11925829
The Process.GetProcesses() willl return a list of running procs.  Then you can check it from there, and if not found--it will start the application you want.  Good luck on your program.
0
 

Author Comment

by:LanceWLarsen
ID: 11938379
Hmm... tried that -- but seems as if the System.Diagnostics.Process method does not exist in the Compact Framework... ideas?  Is there an alternate way to access the processes in the Compact Famework?

Thanks tons...
0
 
LVL 7

Accepted Solution

by:
God_Ares earned 1000 total points
ID: 11950169
I think you going to thank me for this one,...

http://69.93.124.180/opennetcf/forums/topic.asp?TOPIC_ID=1482

ever head of opennetcf? www.opennetcf.org it's a downloadable libary. I suggest you serious look at it,.. (soooo trying no to use caps,..)

with use of opennetcf.org the code submitted by NTAC + few mods = success


regards Floris Briolas
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

764 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