VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Execute a file with any extension .doc,.xls,.bmp as long the application is install in windows

KHONG YEW JOON  (1 Submission)   Libraries   Visual Basic 3.0   Advanced   Wed 3rd February 2021

Pass the file name and the function wil check from windows what is the application exe to run the file.Exp you want to run a abc.doc document from your program,u need to know msword.exe path and then you run the shell(applicate exe abc.doc,1) to execute the abc.doc
This work with any extension as long as it register to windows. etc .xls,.vbp,.doc

Inputs
strname = "Full path of your file" exp C:\Myfolder\Abc.doc or C:\abc.xls or c:\abc.bmp

Returns
Execute a file with any extension for more access www.efastclick.com

API Declarations
Private Declare Function FindExecutable _
Lib "shell32.dll" Alias "FindExecutableA" _
(ByVal lpFile As String, _
ByVal lpDirectory As String, _
ByVal lpResult As String) As Long

Rate Execute a file with any extension .doc,.xls,.bmp as long the application is install in windows (5(5 Vote))
Execute a file with any extension .doc,.xls,.bmp as long the application is install in windows.bas

Execute a file with any extension .doc,.xls,.bmp as long the application is install in windows Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters