You are currently offline, waiting for your internet to reconnect

Differences between COMMAND /C and CALL

This article was previously published under Q34768
Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
SUMMARY
The following information details the differences between using COMMAND /Cand CALL.
MORE INFORMATION
COMMAND /C loads a new copy of COMMAND.COM into main system memory andpasses it the command line. If a terminate-and-stay-resident (TSR) programis installed from this new copy of COMMAND.COM, it will be loaded aboveCOMMAND.COM. When you exit from the command shell, the memory used byCOMMAND.COM is freed, but the memory used for the TSR program is not.Hence, system memory becomes fragmented; there is memory allocated for TSRprograms located in the middle of free memory.

When you do a CALL command, MS-DOS does not load a new copy of COMMAND.COM;it just uses an internal stack to keep track of different batch files.Therefore, if a TSR program is loaded, it is loaded at the bottom ofmemory, just above the resident portion of COMMAND.COM; all free memoryremains in a single, contiguous block, which makes it easier for MS-DOS towork.
6.22 3.30 3.30A 4.00 5.00 5.00a 6.00 6.20 6.21
Properties

Article ID: 34768 - Last Review: 11/16/2006 13:40:20 - Revision: 2.1

  • Microsoft MS-DOS 3.1
  • Microsoft MS-DOS 3.2 Standard Edition
  • Microsoft MS-DOS 3.21 Standard Edition
  • Microsoft MS-DOS 3.3 Standard Edition
  • Microsoft MS-DOS 3.3a
  • 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
  • KB34768
Feedback