Launching External Exe File
-
May I know how to launch an external exe file from my application. Just like launching an external Word Document from application. Besides that, any code that can be used to prevent an application that being launched more than one time. please help. thanx in advance.
-
May I know how to launch an external exe file from my application. Just like launching an external Word Document from application. Besides that, any code that can be used to prevent an application that being launched more than one time. please help. thanx in advance.
Desmond wrote: May I know how to launch an external exe file from my application. Use the
Shell
command. There are ways to check to see if an instance of a Word or Excel object is already in existence such asGetObject
. Hope this helps. :) Nick Parker
May your glass be ever full. May the roof over your head be always strong. And may you be in heaven half an hour before the devil knows you’re dead. - Irish Blessing
-
May I know how to launch an external exe file from my application. Just like launching an external Word Document from application. Besides that, any code that can be used to prevent an application that being launched more than one time. please help. thanx in advance.
Hi, You may use Process.Start (from System.Diagnostics.Process). That provides granular control over the process you are starting. Perhaps the following URL should open MSDN Documentation too: ms-help://MS.NETFrameworkSDK/cpref/html/frlrfsystemdiagnosticsprocessclassstarttopic.htm process.Start("http://www.codeproject.com") where process is an object of Process opens the default browser and navigates to codeproject.com While shell might still execute system commands, you might not be able to control execution of those programs to the level that Process allows you to do so. Deepak Kumar Vasudevan http://deepak.portland.co.uk/