Programs cannot load and run batch files directly, although they can run them by loading and running COMMAND.COM. To run a batch file, a parent program calls Load and Execute Program, specifying the location of COMMAND.COM (from the COMSPEC variable) and a command tail consisting of the /c switch followed by the name of the batch file. COMMAND.COM runs the batch file and immediately returns control to the parent program when the batch file ends.