编程知识 cdmana.com

I want to play a video, turn it off and open it again later, and repeat it, but the windows script host says an error - what about the name redefinition?

Run time error , Say my name redefines , Can anyone help me see what's wrong , It's best to point out how to modify .
‘Dim wsh

Set wsh = CreateObject("WScript.Shell")
path = "··············"
set WshShell = WScript.CreateObject("WScript.Shell")
WScript.Sleep 193000
dim qobj,pipe,good
do
good="."
set qobj=getobject("winmgmts:"&good&"rootcimv2")
set pipe=qobj.execquery("select * from win32_process where name='Everything.exe'")
for each i in pipe
i.terminate()
next
wscript.sleep 1
loop
Dim wsh
Set wsh = CreateObject("WScript.Shell")
path = "······"
set WshShell = WScript.CreateObject("WScript.Shell")
WScript.Sleep 259000
dim qobj,pipe,good
do
good="."
set qobj=getobject("winmgmts:"&good&"rootcimv2")
set pipe=qobj.execquery("select * from win32_process where name='Everything.exe'")
for each i in pipe
i.terminate()
next
wscript.sleep 1
loop

“vbs”

版权声明
本文为[CSDN Q & A]所创,转载请带上原文链接,感谢
https://cdmana.com/2021/12/20211207182450899r.html

Scroll to Top