peopleperson88
Technical User
Here is what I have so far...
Dim myProcess As New Process
myProcess.StartInfo.FileName = "install.bat"
myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
myProcess.Start()
Me.Hide()
tmr1.Enabled = True
trm1 is equal to a timer that is set for 100ms.
The form hides (Me.Hide())with the install.bat is running. What I want to do is when the install.bat is complete I was to show the form.
How can I do this? I was thinking of using the HasExited command, but I can't get it to work. It keeps telling me that is can't find the process. Any other ideas?
Thanks
Dim myProcess As New Process
myProcess.StartInfo.FileName = "install.bat"
myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
myProcess.Start()
Me.Hide()
tmr1.Enabled = True
trm1 is equal to a timer that is set for 100ms.
The form hides (Me.Hide())with the install.bat is running. What I want to do is when the install.bat is complete I was to show the form.
How can I do this? I was thinking of using the HasExited command, but I can't get it to work. It keeps telling me that is can't find the process. Any other ideas?
Thanks