Checking VBScript for syntax error
Checking VBScript for syntax error I have a simple VBScript that copies a few files and calls a custom executable from the copied files on the system to set up a scheduled task. I am not well versed in VBScript and getting an error during compilation. It says "Expected end of statement". Here is my script. PLease help me get rid of that compilation error. Set objFso = CreateObject("Scripting.FileSystemObject") Set wshshell = CreateObject("WScript.Shell") Const HKEY_CURRENT_USER = &H80000001 Const HKEY_LOCAL_MACHINE = &H80000002 strComputer = "." ScriptPath = objfso.GetParentFolderName(WScript.ScriptFullName) WinDir = WshShell.ExpandEnvironmentStrings("%WinDir%") Set objRegistry = GetObject("winmgmts:" & strComputer & "rootdefault:StdRegProv") Set XMLDOM = CreateObject("Microsoft.XMLDOM") XMLDOM.Async = False logfile = WinDir & "CDFLogsJoinDom.log" If WScript.Arguments.Named.E...
