Assuming that strValue
contains the full path to the batch file, you could use the Run
method:
CreateObject("WScript.Shell").Run """" & strValue & """", 0, True
The double quotes around strValue
take care of paths with spaces.
If strValue
contains just the path without the filename, you can construct the full path like this:
CreateObject("WScript.Shell").Run """" & strValue & "\batchfile.bat""", 0, True