Solved

OpenProcess in .net

Posted on 2004-07-30
5
635 Views
Last Modified: 2008-03-10

For vb.net, What is the equivalent of calling OpenProcess in vb
For vb.net, what is the equivalent of calling GetExitCodeProcess


0
Comment
Question by:kamleshmistry
  • 2
  • 2
5 Comments
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 11681891
you can use the process object in System.Diagnostics to do this ...
0
 
LVL 18

Accepted Solution

by:
DotNetLover_Baan earned 490 total points
ID: 11681916
Hi there,
1) >>"What is the equivalent of calling OpenProcess "<<
           Dim process1 As System.Diagnostics.Process
           Process.Start("Notepad.exe")

2) >>"what is the equivalent of calling GetExitCodeProcess"<<
          Process.ExitCode

Useful Links for you:
http://www.dotnetspider.com/Technology/KBPages/394.aspx
http://www.devx.com/dotnet/Article/7914
0
 

Author Comment

by:kamleshmistry
ID: 11682022

I found process.start
but not
process.exitcode
0
 

Author Comment

by:kamleshmistry
ID: 11682036
Never mind...  I got it...
thanks...
0
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 11682050
actually openprocess connects to an existant process it does NOT start one  ... which the process object can also do ...

to get the exit code ... you would waitforexit() and then use the error code property
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

948 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now