Advertisement
ASP_Volume2 System Services/ Functions #44201

Easy ShellExecute replacement without API calls

With only a few lines of code you will be able to open any document with the associated executable file or, if no association present, you will be prompted to open the file with the program you choose. This can also be used to execute an executable file. No API calls used!

AI

Shrnutí AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Zdrojový kód
original-source
Private Function ExecuteFile(ByVal FileName As String) As Boolean
 Dim myProcess As New Process()
 myProcess.StartInfo.FileName = FileName
 myProcess.StartInfo.UseShellExecute = True
 myProcess.StartInfo.RedirectStandardOutput = False
 myProcess.Start()
End Function
Původní komentáře (3)
Obnoveno z Wayback Machine