中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-26 17:28
47,812 topics / 349,912 posts / today 2 new / 48,264 members
其它操作系统综合讨论区 » 【Discovery】Is command.com unusable without cmd.exe??
Printable Version  2,045 / 8
Floor1 363523943 Posted 2009-04-05 10:19
初级用户 Posts 30 Credits 26
After deleting cmd.exe or setting permissions, it was found that command.exe became "invalid" and there was no response when typing commands. This is the case for XP, 2K, and 2K3 systems~! Could it be that command depends on cmd?
Floor2 czl1378 Posted 2009-04-05 11:49
初级用户 Posts 114 Credits 161
Hearing you say that, it seems so. I haven't tried it
Floor3 knoppix7 Posted 2009-04-06 00:32
银牌会员 Posts 634 Credits 1,287 From cmd.exe
It can be understood that Cmd.exe provides a most basic environment.
Floor4 qzwqzw Posted 2009-04-10 03:51
银牌会员 Posts 636 Credits 2,343
Shouldn't be like this.
The command is just an entry to a sub-environment of ntvdm.
There's no necessary connection with cmd.
If ntvdm.exe is gone, the command will prompt that command is not found.
Floor5 363523943 Posted 2009-04-12 18:07
初级用户 Posts 30 Credits 26
Originally posted by qzwqzw at 2009-4-10 03:51:
It shouldn't be like this
command is just an entry point of a sub-environment of ntvdm
There is no necessary connection with cmd
If ntvdm.exe is gone
command will prompt that command is not found

Really is like this! If you don't believe it, you can check it on your own computer!
Floor6 fujianabc Posted 2009-04-13 07:34
金牌会员 Posts 1,616 Credits 3,467
That's right. The DOS emulators and OS/2 emulators in the NT environment both need the cmd.exe command-line interpreter.
Floor7 qzwqzw Posted 2009-04-19 12:17
银牌会员 Posts 636 Credits 2,343
Well, some strange places were found

Originally, I only tested that being able to open command.com was considered to work normally

It was found that many commands did not execute and output

Currently, the acceptable and executable commands tested are:

Drive letter jump c: d: e: and so on
Path jump cd
Prompt display and modification prompt
(And using prompt $t can get the system time)
Environment exit exit
Environment variable operation set
Floor8 qzwqzw Posted 2009-04-19 15:30
银牌会员 Posts 636 Credits 2,343
Through the tracking of procmon, it can be confirmed that ntvdm.exe does call cmd.exe to implement some command-line functions, including dir, cls, etc., and it is called using a very traditional interface. C:\WINDOWS\system32\cmd.exe /c DIR. But there are no such calls for commands like cd, prompt, etc.
Floor9 sfcctv Posted 2009-10-11 19:00
中级用户 Posts 135 Credits 208 From 离恨天
Learning
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023