Set oShell = CreateObject(\"WScript.Shell\")
oShell.Run \"cmd /c c:\"
This line executes perfectly fine. Now I need to enter a text.
For exampl
You must add & after each command and change cmd /c to cmd /k
Try like this :
Set oShell = CreateObject("WScript.Shell")
Command = "cmd /K cd /d c:\ & Dir & ping 127.0.0.1"
oShell.Run Command,1,True