由于这个文件与执行文件在同一个目录下,不知道这么表示?

解决方案 »

  1.   

    shell "c:\windows\Notpade.exe 文件路径"
      

  2.   

    楼上的有笔误:
    Option ExplicitPrivate Sub Command1_Click()
    Shell "c:\windows\Notepad.exe  d:\ms\123.txt", vbNormalFocus'将d:\ms\123.txt改为你的文件路径End Sub
      

  3.   

    Shell "c:\windows\Notepad.exe "+  app.path + "\123.txt", vbNormalFocus
      

  4.   

    用app.path取得执行文件的路径,再加上文件名称,如 Shell "c:\windows\notepad.exe" + applpath + "\文件名",vbnormalfocus
      

  5.   

    得了,你把notepad.exe  copy 到 你的 app.path 不就行了