你用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

解决方案 »

  1.   

    不一定是工作目录的关系,有可能是启动参数的问题,如果你的richwin是在Windows启动时加载的,你可以察看注册表中Run项看Richwin的启动参数是什么
      

  2.   

    好,I will try it。上面目一新那位老兄:
    我的richwin不是在Windows启动时加载的,直接用mouse敲它
      

  3.   

    先谢谢wjq(b_wind)这位仁兄,可以行得通.不过最后我还遇到了一个小问题,我需要
    用函数分解路径和文件名,如:c:\game\rpl\pal.exe,要分解成:path=c:\game\rpl
    filename=pal.exe.救人救到底吧,VB自带的函数不够用我一下搞不定了
      

  4.   

    我就是想不通用什么函数去查找最后一个\的位置,用right吧,它只能给出固定几个字符...
    请给我提个醒吧!
      

  5.   

    我已经自己解决了,THANK YOU ALL!