So, have you tried adding the "%COMSPEC%" command interpreter into the SHELL statement, e.g.
Code:

SHELL '%COMSPEC% /C ...'

_________________________
There are two types of vessels, submarines and targets.