Microsoft KB Archive/43083

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 17:56, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Knowledge Base


DOSSHELL Returns to DOS after Executing Batch File

Article ID: 43083

Article Last Modified on 11/16/2006



APPLIES TO

  • Microsoft MS-DOS 4.0 Standard Edition
  • Microsoft MS-DOS 4.01 Standard Edition
  • Microsoft MS-DOS 5.0 Standard Edition
  • Microsoft MS-DOS 5.0a
  • Microsoft MS-DOS 6.0 Standard Edition
  • Microsoft MS-DOS 6.2 Standard Edition
  • Microsoft MS-DOS 6.21 Standard Edition
  • Microsoft MS-DOS 6.22 Standard Edition



This article was previously published under Q43083

SYMPTOMS

When you execute a batch file from DOSSHELL, you are not returned to the DOSSHELL when the batch file is finished. Instead, you are returned to the MS-DOS prompt.

CAUSE

This problem occurs because you are not using the following syntax in your Commands field of the Add Program dialog box:

CALL FOOT.BAT


If you neglect to use the CALL statement, the batch file does not return properly to the calling program. Instead, it returns you to the MS-DOS command prompt because the DOSSHELL also has its own batch command language, slightly different from that used by COMMAND.COM. The CALL is necessary to inform the DOSSHELL that the file should be CALLed as a normal MS-DOS batch file.

MORE INFORMATION

For more information about the use of batch files from the Microsoft MS-DOS 4.0 Shell, refer to Page 101 of the "Microsoft MS-DOS Shell User's Guide" manual.


Additional query words: 4.00 4.01 5.00 5.00a 6.00 6.20 6.21 6.22

Keywords: KB43083