- 帖子
- 54
- 积分
- 418
- 技术
- 1
- 捐助
- 0
- 注册时间
- 2008-11-7
|
6楼
发表于 2009-7-23 01:02
| 只看该作者
这样我大概知道了,非常感谢
SET objFSO = Createobject("scripting.filesystemobject")
SET objWSH = Createobject("Wscript.Shell")
SET objEnv = objWSH.Environment("process")
colWinPath = SPLIT(objEnv("Path"),";")
const HKLM = &H80000002
SET objREG = Getobject("winmgmts:\\.\Root\default:StdRegProv")
strkey = "Software\Microsoft\Windows nt\Currentversion\Winlogon\Notify"
objREG.EnumKey HKLM , strkey , arrsubkey
For Each subkey In arrsubkey
objREG.GetStringValue HKLM , strkey & "\" & subkey , "DllName" , strvalue
FC strvalue
notifykey = notifykey & Chr(34) & subkey & Chr(34) & "=" & Chr(34) & FileName & Chr(34) & vbcrlf
Next
Wscript.echo notifykey
Sub FC(FilePathName)
For Each objWinPath In colWinPath
IF objFSO.FileExists(objWinPath & "\" & FilePathName) Then
FileName = objWinPath & "\" & FilePathName
Exit Sub
End IF
Next
FileName = FilePathName & " [File Not Found.]"
End Sub
这样好像有点小问题,找时间在改 |
|