Microsoft KB Archive/43083
Article ID: 43083
Article Last Modified on 11/16/2006
- 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
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.
This problem occurs because you are not using the following syntax in your Commands field of the Add Program dialog box:
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.
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