why doskey not functioning in command.com (not cmd.exe)

G

Guest

what's the difference between command.com and cmd.exe?
what dos command are not support in command.com?
 
M

Mickey

CMD.EXE or COMMAND.COM
Windows NT comes with two "command line shells" -- one called CMD.EXE and
the other called COMMAND.COM. If you're wondering which one to use,
following information might help:
CMD.EXE is the Windows NT's native command prompt (or shell), which means it
is more portable among different hardware platforms. For example, if you
type SET and press ENTER inside a CMD.EXE prompt, you'll notice that CMD.EXE
exposes more environment variables than COMMAND.COM. On the other hand,
COMMAND.COM is the more "MS-DOS compatible" version of the two shells. For
example, this shell will call AUTOEXEC.NT and CONFIG.NT (located in the
SYSTEM32 directory inside your Windows NT directory) just like MS-DOS used
to call AUTOEXEC.BAT and CONFIG.SYS.

So, if you're having trouble running your old DOS command line programs from
Windows NT, try running them inside a COMMAND.COM shell, not CMD.EXE.

Hope this helps to explain it,
Mickey
 
S

Shenan Stanley

wls said:
what's the difference between command.com and cmd.exe?
what dos command are not support in command.com?

Google is down?

Windows NT/Windows 2000 supply cmd.exe and command.com. CMD.EXE is the
Windows NT command line interface, its NOT a DOS window. COMMAND.COM is a
16-bit DOS application which is used for older DOS compatibility and
actually runs inside the NTVDM (NT Virtual DOS Machine) due to its 16-bit
nature.

http://www.windowsitpro.com/Article/ArticleID/13578/13578.html
 
M

Mickey

What are some advantages of using CMD instead of COMMAND?

Apart from what was listed in the opening paragraph one of the most
noticeable things a user is going to notice when using CMD to access MS-DOS
is the ability to use long file names. When a user is using COMMAND they
will need to use the short 8.3 name. For example if a user wanted to access
"My Documents" in COMMAND they would need to type "cd mydocu~1". However, a
user who wanted access the same directory through CMD could type "cd my
documents".

This may help answer the second part of your question,

Good Luck,

Mickey
 
D

David Candy

You cannot type in command com. Command.com is for dos programs that used to shell to command.com and works as it always did.

The window you see is a terminal window. It in neither dos, cmd or anything. It is a terminal window. Anything that writes to console writes to the terminal window.

If you type command in Start Run anything you type is sent to cmd for execution. Start Task Manager (dos is ntvdm.exe). Type command in Start Run

Now type some lengthly dos commands (so you have time to watch task manager) like dir c:\ /s. You will see cmd start to process each command from the terminal window.

Second experiment

Type all of this in Start Run

cmd /k dir /?
command /k dir /?

Now type command in Start Run and type in the terminal window
dir /?

Now type cmd in Start Run and type in the terminal window
dir /?

command /k dir /?
is the only one that give you Dos 5's Dir and this is how Dos programs shelled to Dos.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top