After each command, you must add & and change cmd / c to cmd / k
- First command: CD / D c: \
- Second Team: Dir
- Third command: ping 127.0.0.1
Try it like this:
Set oShell = CreateObject("WScript.Shell")
Command = "cmd /K cd /d c:\ & Dir & ping 127.0.0.1"
oShell.Run Command,1,True
source
share