How to : Execute another exe from vb .net

Опубликовано: 05 Октябрь 2024
на канале: How to : Tips and Trick
51
0

Execute another exe from vb .net

Dim startInfo As System.Diagnostics.ProcessStartInfo

Dim pStart As New System.Diagnostics.Process

startInfo = New System.Diagnostics.ProcessStartInfo("C:\file.exe")

pStart.StartInfo = startInfo

pStart.Start()

pStart.WaitForExit() 'Your code will halt until the exe file has executed.

On another note, if you want to convert .swf files to .exe, check out the excellent Amaze .swf Bundler .