I am trying to run the following command and return the output of it using VBscript:
dir /A-d \"C:\\Windows\\Minidump\" | find /c \"/\"
And I h
dir
%comspec%
Double quotes need to be escaped by double double quotes in VBScript:
Wscript.Echo runCMD("%comspec% /c dir /A-d ""C:\Windows\Minidump"" | find /c ""/""")