Copying and pasting code form the “internets”? Make sure that your code is encoded in ANSI format in order for the VBScript compiler to successfully execute your script.
Set WshShell = WScript.CreateObject(“WScript.Shell”)
vs.
Set WshShell = WScript.CreateObject(“WScript.Shell”)
Do you see the problem??