ShellExecute打开文件时如何使用文件名变量和路径变量?像这样ShellExecute(handle,'open',文件名,nil,路径,SW_ShowNormal);

解决方案 »

  1.   

    ShellExecute(handle,'open',pchar(文件名),nil,pchar(路径),SW_ShowNormal);
      

  2.   

    s:='c:\tt.txt';
    ShellExecute(handle, 'open',
                        PChar(s), nil, nil,
                             SW_SHOWNORMAL);
      

  3.   

    高手,请问如何用指定的程序打开文件,例如用word打开c:\1.txt文件?
      

  4.   

    shellexecute(application.Handle, 'open', 'Iexplore.exe', 'c:\1.txt', nil, SW_NORMAL);对吗?
      

  5.   

    uses SHellAPI;
    ShellExecute(Handle,'open','word 的可执行文件',Pchar(c:\1.txt),nil,sw_showNormal);
      

  6.   

    如何用虚拟光驱daemon.exe打开文件?
      

  7.   

    daemon.exe -mount 0,g:\msdn200110_1.iso