我是靠谱客的博主 背后哈密瓜,这篇文章主要介绍显示运行对话框内保存的命令历史的vbs,现在分享给大家,希望可以做个参考。

复制代码 代码如下:

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

最后

以上就是背后哈密瓜最近收集整理的关于显示运行对话框内保存的命令历史的vbs的全部内容,更多相关显示运行对话框内保存内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(240)

评论列表共有 0 条评论

立即
投稿
返回
顶部