Computing.Net > Forums > Windows 2000 > cmd.exe & command.com mysteries

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.

cmd.exe & command.com mysteries

Reply to Message Icon

Name: Mechanix2Go
Date: July 1, 2004 at 11:22:48 Pacific
OS: w2k SP3
CPU/Ram: P III 933/256
Comment:

Hi,

When I run SOME DOS apps, not all, command.com loads and cmd.exe unloads. Here is a partial environment 'dump'

BEFORE________

c:\TEMP>set
>>=settings.1
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\Administrator\Application Data
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=BIG933
ComSpec=C:\WINNT\system32\cmd.exe
HOMEDRIVE=C:

AFTER______________________
C:\TEMP>set
COMSPEC=C:\WINNT\SYSTEM32\COMMAND.COM
>>=settings.1
ALLUSERSPROFILE=C:\DOCUME~1\ALLUSE~1
APPDATA=C:\DOCUME~1\ADMINI~1\APPLIC~1
COMMONPROGRAMFILES=C:\PROGRA~1\COMMON~1
COMPUTERNAME=BIG933
HOMEDRIVE=C:
_____________________________

Notice that the the new COMSPEC is not in alphabetical order like anything else added. But that's not nearly the weirdest part.

I can make no sense of which progs cause this effect. Borland C++ does it: BC or BCC or CPP.

XDEL, copyright Digital Research 1987 [!] does NOT.

It gets weirder. When command.com loads the 'command history' [sorta like doskey] goes away. I figured OK, I'll load doskey. I type doskey /insert. Prompt comes back. But there's no doskey. Can't arrow up to earlier commands. And I checked mem/c and it's not there.

I have a batch file which says 'exit' ; no quotes ; because I'm not a great typist. When I type x and press return with cmd.exe running, it exits cmd. When I type x and press return with command.com running, it just sits there.

When I type exit and press return it exits. But it doesn't just exit command.com and go back to cmd.exe. It ends the 'DOS box' session.

BTW, the x bat file works in 5.0 6.22 and 98se.

This one really has me amazed and confused.

Any contestants?

M2



Sponsored Link
Ads by Google

Response Number 1
Name: kopustes
Date: July 1, 2004 at 15:12:46 Pacific
Reply:

Hi,
It is not normal, isn't it ?

command.com is emulated in win2k, and
is a process dependent of NTVDM (virtual
16 bit machine description) in fact it's
an application that provides an environment for a 16-bit process to execute on a 32-bit platform.

cmd.exe is the shell of win2k, it's the Microsoft Windows command prompt. Cmd.exe is a 32-bit command prompt used in Windows NT, 2000, and XP.

Two shells can be loaded and be running at the same time, I do not know why happens that, I think something in your OS is not
working properly

kopustes
MicroWan Ethical Hacking
http://www.microwan.net


0
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Windows 2000 Forum Home


Sponsored links

Ads by Google


Results for: cmd.exe & command.com mysteries

cmd.exe or command.com www.computing.net/answers/windows-2000/cmdexe-or-commandcom/43925.html

Windows 2000 access to command.com www.computing.net/answers/windows-2000/windows-2000-access-to-commandcom/46255.html

Running DOS .exe and .com files www.computing.net/answers/windows-2000/running-dos-exe-and-com-files/59262.html