Two versions of dos command prompt

  • Thread starter Thread starter jackson6612
  • Start date Start date
  • Tags Tags
    Dos
Click For Summary

Discussion Overview

The discussion revolves around the differences between two command prompts in DOS/Windows: "cmd" and "command". Participants explore the functionalities and syntax of the COPY command, including its usage and potential misunderstandings regarding its documentation.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Homework-related

Main Points Raised

  • Some participants note that command.com is the original DOS prompt, while cmd.exe is a 32-bit executable designed to emulate command.com in later Windows versions.
  • One participant questions the syntax of the COPY command as described in a Wikipedia article, specifically the use of "from" and "to", suggesting it may not work as stated.
  • Another participant suggests that multiple files can be indicated using the wildcard "*" character, providing examples of how to reference files with specific extensions.
  • There is a suggestion to type "help copy" in the prompt for clarification on the usage of the COPY command.
  • A participant confirms that the wildcard method for indicating multiple files works as expected, providing a specific example related to file naming conventions.

Areas of Agreement / Disagreement

Participants express differing views on the clarity and accuracy of the COPY command's syntax as presented in external documentation. There is no consensus on whether the Wikipedia article is incorrect or if the misunderstanding lies in interpretation.

Contextual Notes

Limitations include potential ambiguities in the documentation of the COPY command and the need for clarity regarding the syntax used for multiple file references.

jackson6612
Messages
334
Reaction score
1
Hi

If I write the command "cmd" I get a different version of Command Prompt from when I enter the command "command". More or less they're the same but start with different 'initial' command string. What's the difference between the two? Please help me. Thanks.

Video:
 
Last edited by a moderator:
Technology news on Phys.org
command.com is the original dos prompt, cmd.exe is the native dos prompt.

google turns up lots of info on this.
 
This Wikipedia article http://en.wikipedia.org/wiki/List_of_DOS_commands explain the COPY command as such:

copy

Copies files from one location to another. The destination defaults to the current directory. If multiple source files are indicated, the destination must be a directory, or an error will result.

Syntax:
copy from [source\filename] to [destination\folder]

1: But the syntax with "from" and "to" doesn't work. One has to do without the two. Does Wikipedia have it wrong, or is it me who is interpreting it wrongly?

2: How do I indicate multiple files instead of one, I mean what would be the syntax look like then?

Please help.
 
command.com is the 16bit command prompt used in DOS(which was 16bit), and that cmd.exe is the 32bit executable meant to emulate command.com for the later 32bit Windows.
 
jackson6612 said:
2: How do I indicate multiple files instead of one, I mean what would be the syntax look like then?
As far as I remember, multiple files could be indicated with the wildcard "*" character. For example, *.txt would refer to all files (in the current directory) with a .txt extension. Or a*.* would refer to all files beginning with the letter a. And *.* means all files.
 
jackson6612 said:
1: But the syntax with "from" and "to" doesn't work. One has to do without the two. Does Wikipedia have it wrong, or is it me who is interpreting it wrongly?
Some combination, but you can edit it if you think it's unclear. You can always type help copy into the prompt for the usage anyway.


As far as I remember, multiple files could be indicated with the wildcard "*" character. For example, *.txt would refer to all files (in the current directory) with a .txt extension. Or a*.* would refer to all files beginning with the letter a.
Just tested this and yeah it works as expected. For example, if you've got a list of data files by year and you only want files from the 90s, you'd do
copy "*199*" dest
 

Similar threads

Replies
7
Views
3K
Replies
14
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 8 ·
Replies
8
Views
7K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 7 ·
Replies
7
Views
5K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K