China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-24 16:52
中国DOS联盟论坛 » GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » In DOS, the `dir` command corresponds to the `command.com` or `cmd.exe` file? Wait, no. Wait, actually, in the classic DOS environment, the `dir` command is an internal command built into the command interpreter. But if we talk about the executable file that provides the `dir` functionality, in MS-DOS, the `command.com` is the command interpreter that includes the `dir` command as an internal command. However, let's get back to the translation requirement. The user's question is "dos下 dir命令是对应的那个文件", which translates to "In DOS, which file does the `dir` command correspond to?" But according to the instructions, we just translate the content. Wait, no, the task is to translate the user's provided text. The user's text is "dos下 dir命令是对应的那个文件", so the translation is "In DOS, which file does the `dir` command correspond to?" But wait, no, let's do it properly. Wait, I made a mistake. The correct translation is: "In DOS, which file does the `dir` command correspond to?" But let's check again. Oh no, I messed up. The user's input is "dos下 dir命令是对应的那个文件", so direct translation is "In DOS, which file does the `dir` command correspond to?" But wait, no, let's do it step by step. "In DOS, which file does the `dir` command correspond to?" View 1,579 Replies 2
Original Poster Posted 2010-03-09 09:13 ·  中国 安徽 六安 电信
新手上路
Credits 6
Posts 2
Joined 2010-03-03 15:07
16-year member
UID 161506
Gender Male
Status Offline
I want to modify the DIR command with assembly, but I don't know in which file

For example, cmd corresponds to cmd.exe and command corresponds to command.exe

But no dir.exe was found for dir
Floor 2 Posted 2010-03-09 09:25 ·  中国 上海 中国科学院上海分院
金牌会员
★★★★
Credits 3,467
Posts 1,616
Joined 2004-06-21 00:00
22-year member
UID 27148
Status Offline
dir is an internal command, that is, a command within command.com
Floor 3 Posted 2010-03-09 10:03 ·  中国 安徽 六安 电信
新手上路
Credits 6
Posts 2
Joined 2010-03-03 15:07
16-year member
UID 161506
Gender Male
Status Offline
Does the system itself recognize command? Can I assemble command.com under DOS for use?
Forum Jump: