Computing.Net > Forums > Disk Operating System > command.com vs.cmd.exe

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

command.com vs.cmd.exe

Reply to Message Icon

Name: xb
Date: December 10, 2001 at 11:19:18 Pacific
Comment:

win2k has command.com as well as cmd.exe. what's the difference between the two?



Sponsored Link
Ads by Google

Response Number 1
Name: spot
Date: December 10, 2001 at 20:36:30 Pacific
Reply:

Don't know for sure but I'd guess that command.com is the regular Windows 2000 command processor and cmd.exe is the DOS compatibility mode program.


0

Response Number 2
Name: Andrew Ordo
Date: December 10, 2001 at 20:54:29 Pacific
Reply:

Here's the deal:

CMD.EXE is the "regular" Windows 2000
command processor and COMMAND.COM is
the DOS compatibility mode shell.

CMD.EXE is the native Windows NT/2000/XP
shell. That is, CMD.exe is the more
portable command processor. (Type SET
and press inside a CMD.exe console
and you'll see that CMD.exe exposes more
environment variables.) Also, CMD.exe does
not call AUTOEXEC or CONFIG and it's fully
32-bit.

COMMAND.COM is geared more toward DOS
compatibility. It calls AUTOEXEC.NT and
CONFIG.NT. COMMAND.COM is the shell you're
using when running old DOS programs (using
NTVDM).


Spot: Good guess--you just got it backward.


0

Response Number 3
Name: RedFur
Date: December 10, 2001 at 21:34:32 Pacific
Reply:

Just to add something. Since you using Win98,Win2000, etc you should use cmd.exe. More then likely youv'e created a directory or two with long/broken filename. Windows already has with "Program Files". command.com has a bad time with these, cmd.exe does not. There're other troubles with command.com in Win 98+ as well.

Best bet is to use cmd.exe


0

Response Number 4
Name: fool
Date: December 10, 2001 at 23:42:13 Pacific
Reply:

command does have problems with LFN. that is a fact. this has an advantage to it in some cases. see below.

dir: c:\my old junk

in lfn: cd "my old junk"
no lfn: cd myoldj~1

the 'advantage' is not typing all the chr's.
however lfn allows more english like names, but can be a hassle when extracting a lfn enabled zip in 'old-dos' sometimes!


0

Response Number 5
Name: Delta
Date: December 11, 2001 at 17:26:40 Pacific
Reply:

An added bonus to using cmd.exe over command.com is that during the cmd.exe session, you get the built-in advantage of doskey.exe. Anyone remember that little goodie?


0

Related Posts

See More



Response Number 6
Name: Holey_Moley
Date: December 19, 2001 at 22:27:05 Pacific
Reply:

cmd.com is the OS/2 command line processor (i.e. 32 bit) that survived through OS/2 -> WinNT -> Win2000


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: command.com vs.cmd.exe

Unable to Load Command.com(or dosswap.exe) www.computing.net/answers/dos/unable-to-load-commandcomor-dosswapexe/1186.html

Command.com v cmd www.computing.net/answers/dos/commandcom-v-cmd/12776.html

Command.com problem www.computing.net/answers/dos/commandcom-problem/4454.html