#32002/3/1 3:46:05
这两个问题都需要使用插件了
建议用buddyapi xtra
打印:
baPrintFile( the pathName & "test.txt" )
检测word是否安装:(看看这封我给wrj的email吧,应该可以解决你的问题了)
wrj,您好!
这要根据你所要查询的软件来定,我以acdsee和adobe公司的acrobat reader为例来说明:
读取注册表的函数,用buddy api 插件的baReadRegString( KeyName, valueName, Default, Branch )
四个参数均为string类型,下面是它们的一些说明,这些你都可以在buddy api的帮助文件中查到!
KeyName is the name of the key.
valueName is the name of the value. Under 16 bit, this value is ignored.
Default is the string that is returned if the key/value doesn't exist.
Branch is the branch of the registry to use. Can be one of the following:
"HKEY_CLASSES_ROOT"
"HKEY_CURRENT_USER"
"HKEY_LOCAL_MACHINE"
"HKEY_USERS"
"HKEY_CURRENT_USER"
"HKEY_DYN_DATA"
比如我们要读取acdsee的安装路径,那么语句应该这么写:
baReadRegString( "software\microsoft\windows\currentversion\app paths\acdsee.exe", "path", "error", "HKEY_LOCAL_MACHINE" )
要读取acrobat reader的安装路径,可以这么写:
baReadRegString( "software\microsoft\windows\currentversion\app paths\AcroRd32.exe", "path", "error", "HKEY_LOCAL_MACHINE" )
也可以这么写:
baReadRegString( "software\adobe\acrobat reader\5.0\Installpath", "", "error", "HKEY_LOCAL_MACHINE" )
编辑历史:[这消息被mzgjingsi编辑过(编辑时间2002-03-01 12:48:46)]