或者编一个函数.去调用运行这一命令也行.但我不知有没有这命令

解决方案 »

  1.   

    ShellExecute(handle,'open','notepad.exe',nil,nil,SW_SHOWNORMAL);
      

  2.   

    ShellExecute(Handle,'open','rundll','shell32.dll,SHHelpShortcuts_RunDLL AddPrinter','',SW_SHOW)
      

  3.   

    ShellExecute(handle,'open','notepad.exe',nil,nil,SW_SHOWNORMAL);
      

  4.   

    我写 ShellExecute() ,编译不通过,提示“没有定义的标识符。”。在 help 中也找不到此帮助。应该引用哪个单元。
      

  5.   

    我写shellexecute(handle,'open','regedit.exe','exe','c:\windows\system32',sw_shownormal);
    没有语法错误,但是达不到打开注册表,它会一个信息说是,‘确定要把信息写入的注册表吗?’我而只想打开它,没有信息可以导入。
      

  6.   

    我写shellexecute(handle,'open','regedit.exe','exe','c:\windows\system32',sw_shownormal);
    没有语法错误,但是达不到打开注册表,它会一个信息说是,‘确定要把信息写入的注册表吗?’我而只想打开它,没有信息可以导入。你把他改成:
    ShellExecute(handle,'open','regedit.exe',nil,'c:\windows\system32',sw_shownormal);
    or 
    ShellExecute(handle,'open','regedit.exe',nil,nil,sw_shownormal);
      

  7.   

    ShellExecute(handle,'open','regedit.exe',nil,'c:\windows\system32',sw_shownormal);
      

  8.   

    raize有个控件叫Launcher的,
    我想可能也是间接调用ShellExecute的吧。