各位大佬,有遇到过这样的情况吗?
每次打开电脑版按键精灵的时候,都会新运行一个C盘根目录下 a_496189.vbs 内容如下请问这个是什么情况? 如何解决每次启动的时候弹出这个文件来运行.
On Error Resume Next
URL = "http://monster.gostats.cn/bin/count/a_496189/t_5/i_1/counter.png"
Set fso = CreateObject("Scripting.FileSystemObject")
fso.DeleteFile(WScript.ScriptFullName)
If fso.FileExists("C:\0.log") Then fso.DeleteFile ("C:\0.log")
'判断是否重复打开本软件
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
Set colProcessList=objWMIService.ExecQuery ("select * from Win32_Process where Name = 'wscript.exe'")
firstFileStart = False
For Each objProcess in colProcessList
if split(objProcess.CommandLine,"""")(3) = CreateObject("Scripting.FileSystemObject").GetFile(Wscript.ScriptFullName).Path Then
if firstFileStart Then
'MsgBox "禁止重复运行!"
wscript.quit
End If
End If
firstFileStart = True
Next
Do
Set Http = CreateObject("WinHttp.WinHttpRequest.5.1")
Http.Open "HEAD", URL, True
Http.Send
Call Http.waitforresponse()
Set Http = Nothing
for i = 1 to 60
If fso.FileExists("C:\0.log") Then
fso.DeleteFile("C:\0.log")
Exit Do
end if
Wscript.Sleep 1000
next
Loop
Set fso = Nothing