Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

I have a VB.NET application where a series of external applications are launched, when the first completes, the second one then launches, and so on until the end. Here is the code I'm currently using:

 

Dim p1 As System.Diagnostics.Process
       p1 = System.Diagnostics.Process.Start("app1.exe")
       p1.WaitForExit()

Dim p2 As System.Diagnostics.Process
       p2 = System.Diagnostics.Process.Start("app2.exe")
       p2.WaitForExit()

 

This code works, however when using my program in conjunction with Windows XP SP2, the new box asking you if you want to run the application pops up, requiring the user to click on "Run" in order to actually run the each application.

 

http://www.hallaway.net/open-security-warning.jpg

 

I understand that you can uncheck the box to make it not happen again, but some people like to have this feature on, and also it would have to be unchecked on every computer that my application is run on.

 

When I launch a single application using the following command, I do not get the message from windows, asking me if I want to run it:

 

Shell("app1.exe")

 

I would like to be able to use the "Shell" method to launch the applications, but also be able to use the "WaitForExit" feature in order to run the applications in succession on their own, without requiring the user to click "Run" for each application that tries to launch. Thanks!

Edited by PaulieORF

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...