有关于ShellExecute()函数使用的简单例子最好!!谢谢!再线等待!!

解决方案 »

  1.   

    uses ShellAPI;ShellExecute(0, 'open', 'notepad.exe', nil, nil, SW_SHOW);
      

  2.   

    (转)
    ----------------------------
    ShellExecute对文件的操作都有几种方式?我就知道有open,哪位给列举一下?
    edit
    explore
    find
    open
    print
    properties 
    实际上,这个参数决定于注册表中对文件类新的那个操作!比如某类文件.abc,注册有一个操作Test,那么就可以用Test参数!!!EMail的参数:
     EmailTo:收信人Email地址?subject=主题&cc=抄送&BCC=密件抄送&body=正文内容&file="文件名"其中,file只对outlook起作用。
      

  3.   

    结合 chechy(为程序而奋斗) 的再看看help就ok了吧
      

  4.   

    ShellExecute(0, 'explore', 'C:\WINDOWS', nil, nil, SW_SHOW);//查看目录(资源管理器)
    ShellExecute(0, 'find', 'notepad.exe', nil, nil, SW_SHOW);//“查找”对话框
      

  5.   

    to: rlongriver(学习中) 
    其实很简单,首先ShellExecute不仅可以启动应用程序,而且可以启动已注册的关联程序。
    譬如,ShellExecute(0, 'edit', 'my.txt', nil, nil, SW_SHOW);
    就相当于你在资源管理器里右键单击'my.txt',选择‘编辑’。
    其他就依此类推。
      

  6.   

    uses shellapi;...
    ShellExecute(handle, 'open', 'myprogram.exe', nil, nil, SW_SHOW);
    ...