Visual Basic: Shell Command From VB: "Ok, maybe I missed it, but many commands, especially 'DOS' commands like x.bat require that you load the command processor in order for them to run.

To handle this, prefix your string with 'cmd /c' and make sure that any pieces that are not '8.3' format are enclosed in quotes.

The way to test your command is to put it into the run box (Start | Run...). If it works there, without modification, it should work directly from VB. If not, it probably needs the command processor.

Also, you may want to use (Environ('ComSpec') rather than 'cmd' so it works in the Win95 series.

shell Environ('ComSpec') & ' /c ' & 'somepath\somefile.bat'"