sleep vbscript
What’s wrong in this script?
I have this VBScript, but it gives me some errors. Can someone help me fix it? Thanks! Here is the script:
Dim $WshShell, $x
$WshShell = CreateObject(”WScript.Shell”)
$WshShell.Run(”cmd /c start ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}\::{0DF44EAA-FF21-4412-828E-260A8728E7F1}”)
$WshShell.AppActivate(”Taskbar and Start Menu Properties”)
Sleep 2
$x=SendKeys (”q”)
Sleep 2
$x=SendKeys (”{ENTER}”)
I’m getting this error:
script.vbs(1, 5) Microsoft VBScript compilation error: Invalid character.
The 3rd line where it says “$WshShell.Run(”cmd /c start…”
These are PID for some programs (executables). They may be invalid.
What type of error are you getting?