OpenAnyFile

Finally, can have one command to open any file using its default associated app in Windows.
That includes open URLs in default browser

CodeFunctionName
What is this?

Public

Tested

Original Work
Sub OpenAnyFile(FullCmd)
    ' Note that we are calling a dll that is always going to be there
    ' Full path or command line is defined in FullCmd
    ' This works also for hyperlinks
    Shell "rundll32 url.dll,FileProtocolHandler """ & FullCmd & """"
    ' Tested on pdf, jpg, hyperlinks, etc.
End Sub

FullCmd

Views 97

Downloads 42

CodeID
DB ID