in reply to Can't spawn "cmd.exe":

You don't show any error checking, where are you seeing these errors?