中国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-15 16:12
47,813 topics / 349,903 posts / today 1 new / 48,257 members
DOS疑难解答 & 问题讨论 (解答室) »
Printable Version  1,023 / 5
Floor1 yawn Posted 2003-05-19 00:00
初级用户 Posts 1 Credits 105
In the computer lab, when I entered DOS, I couldn't use commands like cd, cd.., del, and so on! I once saw a command in
a book! doskey, so:

D:\Masm>cd..
Bad command or file name

D:\Masm>cd d:\
Bad command or file name

D:\Masm>del
Bad command or file name

D:\Masm>doskey/reinstall
DOSKey installed

D:\Masm>doskey cd=(Enter)

D:\Masm>doskey cd..=(Enter)

D:\Masm>cd..
Bad command or file name

D:\Masm>cd c:\windows
Bad command or file name


D:\Masm>

Why is this????? Please enlighten me, experts!!!!!!!!
Floor2 Wengier Posted 2003-05-20 00:00
系统支持 Posts 10,521 Credits 27,736
Maybe it wasn't DOSKEY, but another program that caused it.
Floor3 如是大师 Posted 2003-05-20 00:00
元老会员 Posts 3,351 Credits 9,654 From 湖北
You entered the masm directory—are the commands you want to use in this directory?? Please use 【cd..】 to go back to the parent directory, then enter the corresponding directory to execute the related commands..
A few of the ways you used those commands are wrong... Please use the 【/?】 parameter under DOS to check the correct syntax of the commands..
Floor4 丁栳 Posted 2003-06-03 00:00
初级用户 Posts 8 Credits 134
Don't forget, all of DOS's internal commands (including cd, del, etc.) are in the command.com file, and these internal commands in command.com can be modified. He did this on purpose to test everyone.
Floor5 Wengier Posted 2003-06-03 00:00
系统支持 Posts 10,521 Credits 27,736
Hehe, if that's the case, then just use EDIT to look inside the COMMAND.COM file and see what command it corresponds to.
Floor6 丁栳 Posted 2003-06-03 00:00
初级用户 Posts 8 Credits 134
Super Moderator:
command.com is not modified with edit. Also, I forgot to explain that the way the command line below is written is wrong.
D:\Masm>cd c:\windows
Bad command or file name
A prompt like this appears because an incorrect command was entered.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023