Option ExplicitContoh penggunaan menampilkan dialog open with:
Private Sub ShowOpenWith(Filename As String)
Dim x As Long
x = Shell("rundll32.exe shell32.dll,OpenAs_RunDLL " & Filename)
End Sub
Private Sub Command1_Click()
ShowOpenWith "C:\boot.ini"
End Sub