如何使用VbScript检查注册表值
发布时间:2020-12-13 20:47:35 所属栏目:Windows 来源:网络整理
导读:如何使用VbScript检查注册表值? function readFromRegistry (strRegistryKey,strDefault ) Dim WSHShell,value On Error Resume Next Set WSHShell = CreateObject("WScript.Shell") value = WSHShell.RegRead( strRegistryKey ) if err.number 0 then read
如何使用VbScript检查注册表值?
function readFromRegistry (strRegistryKey,strDefault ) Dim WSHShell,value On Error Resume Next Set WSHShell = CreateObject("WScript.Shell") value = WSHShell.RegRead( strRegistryKey ) if err.number <> 0 then readFromRegistry= strDefault else readFromRegistry=value end if set WSHShell = nothing end function 用法: str = readfromRegistry("HKEY_LOCAL_MACHINESOFTWAREAdobeESDInstall_Dir","ha") wscript.echo "returned " & str Original post (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 关于win10系统安装HCL模拟器2.1.1版本常见的一些问题(自制)
- 无法为CurrentUser设置Powershell ExecutionPolicy
- 身份验证 – 我对选择性身份验证的双向信任似乎与单向信任相
- Windows 7登录屏幕保护程序在Delphi
- windows-server-2008-r2 – 还原使用Windows Server Backup
- 将unsigned char *转换为uint64_t
- 如何往虚拟机内传文件的3种方法
- 在Win7中运行多线程Java项目时的零星问题
- ms-access – 从Microsoft Access计算字符串的MD5
- win10 装centos7 虚拟机