如题所述
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 Const SW_SHOWNORMAL = 1
Private Sub Command1_Click()
ShellExecute 0, "open", "d:\", 0, 0, SW_SHOWNORMAL
End Sub
Private Const SW_SHOWNORMAL = 1
Private Sub Command1_Click()
ShellExecute 0, "open", "d:\", 0, 0, SW_SHOWNORMAL
End Sub
示例打开D盘 供你修改
追问谢谢你!!!
温馨提示:答案为网友推荐,仅供参考
第1个回答 2015-11-05
用excel打开一个文件夹 我帮你实现
第2个回答 2015-11-05
getopenfilename?
第3个回答 2015-11-05
h何地追问
???
就是想知道怎么弄出来