I am completely and totally new to VB so any dumbing down and/or condescension is welcome and expected.
I have been charged with the task of creating a prompt window within a folder on our network that when said folder is double clicked or "open" is selected, it will pop up and request that the user open the readme.doc.
The user can then A) skip this option, B) read the file, and C) opt to not see this window again.
Based on the code below...how much work and specifically (oh good god, SPECIFICALLY) what code needs to be present in the form to accomplish ANY of the above?
-
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
-
-
Private Sub CommandButton1_Click()
-
ShellExecute "O:\Operations\ALLGROUPS\Shutdown Planning\Shutdown Maintenance Main Menu Screen Folder Structure HowTo.docx"
-
End Sub
-
-
Private Sub CommandButton2_Click()
-
End
-
End Sub
-
And this is all literal....there is no intention of leaving anything out. So if any of the above is "dummy code" please help.