一般来说,程序的安装路径在注册表里是固定位置存放的,所以,打开注册表管理器,查找“你的Word安装路径”,查找结果就存放着你要的东西,如果你查找这个是为了open a .doc file的话,推荐用ShellExecute Form1.hwnd, "Open", "f:\a.doc", "", "", SW_SHOWNORMAL
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long