I'm having a problem trying to execute a command from VBScript that works correctly from the command line.
From CMD I successfully execute:
ipconfig / all | find / i "DHCP Server"
But from VBScript if I execute the following:
Dim vIpConfig
vIpConfig = oShell.Exec("ipconfig /all | find /i ""Servidor DHCP""").StdOut.ReadAll
MsgBox(vIpConfig)
The MsgBox returns the error:
Error: unknown or incomplete command line.
That is, the command arrives but something in the syntax is incorrect and I do not realize what it is. I think I'm escaping the quotes correctly.
Thanks for your time.