在Delphi中,如何取得IE所在的目录(100分)

  • 主题发起人 downbillgates
  • 开始时间
D

downbillgates

Unregistered / Unconfirmed
GUEST, unregistred user!
在Delphi中,如何取得IE的完整路径。如c:/program Files/Internet explore/IExplore.exe
 
注册表里“HKEY_CLASSES_ROOT/Applications/iexplore.exe/shell/open/command”
如果你想打开一个浏览器窗口,直接用 ShellExecute 函数就可以直接打开 url,比如:

ShellExecute(Handle, 'open', 'http://www.sina.com.cn', '', '', sw_Normal);
 
可以在注册表里找啊
而且,一般安装都是这个,不能变的
 
注册表项:
HKEY_CLASSES_ROOT/CLSID/{0002DF01-0000-0000-C000-000000000046}/LocalServer32
 
我也不知道
 
通过API获得 program files 的目录,然后在后面加上/Internet explore/IExplore.exe
就可以了,那个函数我忘了怎么写,你自己查吧。

还可以读取c:/msdos.sys 文件中的HostWinBootDrv的值,它是启动磁盘的值,
然后在后面加上 program files/Internet explore/IExplore.exe
 
顶部