Set the Wsh=WScript. CreateObject (" WScript. Shell ")
WScript. Sleep (5000)
The Wsh. Run "taskkill/f/im QQ. Exe", 0
Set the Wsh=NoThing
WScript. Quit in broken on see, I tried, but the effect is not very good? And end after a time, like the VBS is a over, not behind, because it is a small white, so also don't know where to go to study this, so shameless to be reached to the party, I now want to achieve stable effect is able to partition a set of a process end of the time,
CodePudding user response:
Delay 5 seconds, kill qqThis code should be finish copy their blind change,
There are two kinds of logic can meet demand: run an infinite loop, QQ every 5 seconds to kill time; Without circulation, directly kill QQ, 5 seconds to run a script,
If use cycle, the code of the circular part;
If it's not cycle, 5 seconds of this code is meaningless,
So also corresponding to the other two kinds: 1. The cycle, delete code such as 5 seconds, 2 to 5 seconds to run the VBS,
CodePudding user response: