Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- strCommand = """c:this.exe"" IEXPLORER=1"
- Set objShell = CreateObject("WScript.Shell")
- objShell.Run strCommand, 0, True
- Function wait()
- set service = GetObject ("winmgmts:")
- for each Process in Service.InstancesOf ("Win32_Process")
- If Process.Name = "this.exe" then
- WScript.Sleep 2000
- call wait()
- wscript.echo "file is not running"
- End If
- next
- wscript.echo "File is running"
- End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement