你用WinAPI函数试试:
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 '声明'使用方法:
ShellExecute 0&,vbnullstring,要运行的程序,vbnullstring,工作目录,vbNormalFocus
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 '声明'使用方法:
ShellExecute 0&,vbnullstring,要运行的程序,vbnullstring,工作目录,vbNormalFocus
我的richwin不是在Windows启动时加载的,直接用mouse敲它
用函数分解路径和文件名,如:c:\game\rpl\pal.exe,要分解成:path=c:\game\rpl
filename=pal.exe.救人救到底吧,VB自带的函数不够用我一下搞不定了
请给我提个醒吧!