'逍遥浪子编程
网志:http://blog.csdn.net/xiaoyaolz
交个朋友,一起编程,学习,一生的朋友
Function opendir(bydir)
'[mycode_id:234],edittime:2005-9-6 17:08:43
Shell "Explorer /n,/root," & bydir, vbNormalFocus
End Function
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_SHOW = 5
Private Sub Command1_Click()
ShellExecute 0, "open", "c:\123.doc", vbNullString, vbNullString, SW_SHOW
End Sub