Advertisement
ASP_Volume3 System Services/ Functions #61779

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

KI-Zusammenfassung: 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.

Quellcode
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
Originalkommentare (3)
Wiederhergestellt von der Wayback Machine