Continue when program is closed
-
How can i check if program have closed. I am doing a install list a folder containing programs installations and one list file that is opened in my program. so if you start my program it starts installation file from list, but then i need to start another installation from the list of installations when first installation is done! Is that possible please help... Do i need to set up timer that check for window or process? Can it be done with background worker? How? :confused: Thanks :^)
FeRtoll Software.net ------------ E-Mail me WebPage
-
How can i check if program have closed. I am doing a install list a folder containing programs installations and one list file that is opened in my program. so if you start my program it starts installation file from list, but then i need to start another installation from the list of installations when first installation is done! Is that possible please help... Do i need to set up timer that check for window or process? Can it be done with background worker? How? :confused: Thanks :^)
FeRtoll Software.net ------------ E-Mail me WebPage
how about the formclosed or formclosing event could that do what you want??
If my help was helpfull let me know, if not let me know why. The only way we learn is by making mistaks.
-
how about the formclosed or formclosing event could that do what you want??
If my help was helpfull let me know, if not let me know why. The only way we learn is by making mistaks.
-
no form close i need action when process is closed!!! i run an other exe file and when it does all the actions and closes i need my program to continue!!! Thanks :sigh:
FeRtoll Software.net ------------ E-Mail me WebPage
I don't directly know how to do this but you could check the taskmanager for the process if its there : do nothing if its no longer there : do you'r code I'v never tryed it like this so don't know if it's possible or how to do it but to get you on you'r way: http://www.codeguru.com/cpp/cpp/cpp_managed/threads/article.php/c4875/[^] http://forums.devx.com/showthread.php?t=142552[^] http://www.codeproject.com/csharp/processescpuusage.asp[^] http://www.codeproject.com/csharp/wm_copydata_use.asp[^] http://www.codeproject.com/dotnet/globalcache.asp[^]
If my help was helpfull let me know, if not let me know why. The only way we learn is by making mistaks.
-
I don't directly know how to do this but you could check the taskmanager for the process if its there : do nothing if its no longer there : do you'r code I'v never tryed it like this so don't know if it's possible or how to do it but to get you on you'r way: http://www.codeguru.com/cpp/cpp/cpp_managed/threads/article.php/c4875/[^] http://forums.devx.com/showthread.php?t=142552[^] http://www.codeproject.com/csharp/processescpuusage.asp[^] http://www.codeproject.com/csharp/wm_copydata_use.asp[^] http://www.codeproject.com/dotnet/globalcache.asp[^]
If my help was helpfull let me know, if not let me know why. The only way we learn is by making mistaks.
thanks man but i found this one and works good!!!
Public Sub Ruun(ByVal ProcessPath As String) Dim objProcess As System.Diagnostics.Process Try objProcess = New System.Diagnostics.Process() objProcess.StartInfo.FileName = ProcessPath objProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal objProcess.Start() 'Wait until the process passes back an exit code objProcess.WaitForExit() 'Free resources associated with this process objProcess.Close() Catch MessageBox.Show("Could not start process " & ProcessPath, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1) End Try End Sub
:doh: anyway thanks!!! :-DFeRtoll Software.net ------------ E-Mail me WebPage