Shell "explorer.exe /e," & path, vbMaximizedFocus'explorer.exe /e資源管理方式打開path爲路徑
Shell "explorer.exe /n," & Path, vbMaximizedFocus'explorer.exe /n普通方式打開,
'後面的, vbMaximizedFocus爲打開方式
ShellExecute Me.hWnd, "open", "notepad", "h:\np.txt", vbNullString, SW_SHOWNORMAL
'打印
ShellExecute Me.hWnd, "print", "H:\print.txt", vbNullString, vbNullString, SW_SHOWNORMAL
ShellExecute Me.hWnd, "explore", "h:\", vbNullString, vbNullString, SW_SHOWNORMAL
'查找對話框
ShellExecute Me.hWnd, "find", "h:\", vbNullString, vbNullString, SW_SHOWNORMAL
'資源管理器
ShellExecute Me.hWnd, "open", "explorer", vbNullString, vbNullString, SW_SHOWNORMAL
'我的電腦
ShellExecute Me.hWnd, "open", "explorer", "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}", vbNullString, SW_SHOWNORMAL
'網上鄰居
ShellExecute Me.hWnd, "open", "explorer", "::{208D2C60-3AEA-1069-A2D7-08002B30309D}", vbNullString, SW_SHOWNORMAL
'回收站
ShellExecute Me.hWnd, "open", "explorer", "::{645FF040-5081-101B-9F08-00AA002F954E}", vbNullString, SW_SHOWNORMAL
'打印機和傳真
ShellExecute Me.hWnd, "open", "explorer", "::{2227A280-3AEA-1069-A2DE-08002B30309D}", vbNullString, SW_SHOWNORMAL
'★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★打開電腦對應文件夾