|
|
发表于 2006-11-20 15:26:00
|
显示全部楼层
Re:求助??
还有一种方法的,好像这个也可以
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
Const SW_SHOWNORMAL = 1
Private Sub Form_Load()
ShellExecute Me.hwnd, vbNullString, App.Path & "/a.txt", vbNullString, "C:\", SW_SHOWNORMAL
End Sub
Or:
Private Declare Function WinExec Lib "kernel32" (ByVal lpCmdLine As String, ByVal nCmdShow As Long) As Long
Private Sub Form_Load()
WinExec "Explorer.exe c:\a.txt", 10
End Sub
PS:好像广西铁通不只是我一个人用吧,某人的论坛可以注册,但是无法登陆,更不能发帖了。
|
|