How exactly using VB6 can I can call any Windows shell command as you would from the command-line?
For example, something as trivial as:
echo foo
a combination of all
Shell Environ("COMSPEC") & " /c echo foo", vbNormalFocus
you should think in expanding COMSPEC environment variable if you wish to support earlier systems like windows 9x or me.
You can also obtain the process id using
pid = Shell(Environ("COMSPEC") & " /c echo foo", vbNormalFocus)