当前位置: 移动技术网 > IT编程>脚本编程>VBScript > 显示运行对话框内保存的命令历史的vbs

显示运行对话框内保存的命令历史的vbs

2017年12月08日  | 移动技术网IT编程  | 我要评论

悄悄爱上你明道,重生之逍遥创世,工人文化宫影讯

复制代码 代码如下:

const hkey_current_user = &h80000001

strcomputer = "."

set objregistry = getobject("winmgmts:\\" & strcomputer & "\root\default:stdregprov")

strkeypath = "software\microsoft\windows\currentversion\explorer\runmru"
objregistry.enumvalues hkey_current_user, strkeypath, arrvaluenames, arrvaluetypes

for each strvalue in arrvaluenames
if len(strvalue) = 1 then
objregistry.getstringvalue hkey_current_user,strkeypath,strvalue,strruncommand
intlength = len(strruncommand)
strruncommand = left(strruncommand, intlength - 2)
wscript.echo strruncommand
end if
next

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网