VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Open File With Default Editor or Program

Tyler  (4 Submissions)   Files/File Controls/Input/Output   Visual Basic 3.0   Beginner   Wed 3rd February 2021

This 1 line of code will Open any file with their correct default program. EX: opens .Doc file with winword and .Zip file with WinZip..Or any file with their default program..

API Declarations
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

Rate Open File With Default Editor or Program (7(7 Vote))
Open File With Default Editor or Program.bas

Open File With Default Editor or Program Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters