原创 2000年08月24日 17:30:00
I know what you are thinking, "what does this have to
do with Windows?".

You may be aware of a "bug" in's "Dir/s"
(Directory Search for a file/s) which skips Hidden
sub-directories (common in "Windows" (95/98)).  The "bug"
is not setting the proper attribute to include hidden directories.
I have modified "" for MS Dos 6.0 to 7.1 on 5

If you have a Hex Editor, enter the Search string (without quotes)
"8B D4 B9 10 00 B4 4E CD 21 72 2C E8 ".
Replace the 10 with 16.  Also verify that the 4th byte past E8 is
also a 10 and replace that with 16 too.  NOTE: if the 2nd 10
is Not present (SHOULD BE) at the 4th pos/byte past E8, then abort
the modification.

  VERIFY PROPER FIX: (Note: Original will have ".BAK")

  Use Dos's file compare (FC) for binary files and type (without

  Dos V6.2
  00003BD3: 10 16
  00003BDF: 10 16

  Dos V7.1
  0000A2D6: 10 16
  0000A2E2: 10 16

  Use this fixed version of and replace the other/s
in other directories, then RESTART your PC.  NOTE: If you don't
replace others,  you may get a system halt with a "invalid" message due to a mismatch (checksum of the first installed during startup does not match a reloaded

Disassembled: (Note: I do NOT have a full disassemble)

8BD4      MOV DX,SP
B91000    MOV CX,0010h ;Bug ( "Plain" Directory, but not hidden
                        (or one with "System"  Attr set))
B44E      MOV AH,4Eh ;Find first (sub-directory)
CD21      INT 21h
722C      JB 3D07h ;JB if NOT found.  NOTE: 3D07h depends where you
                                  disassemble, but 72 2C is constant
E8FBFD    CALL 3AD9h ;(3AD9h Dos 6.2 which is different in Dos 7.1)
B91000    MOV CX,0010h ;Bug part 2
          MOV AH,4Fh ;Find next (sub-directory)
          INT 21h

      John Augustine


2000年08月24日 17:30:00 I know what you are thinking, "what does this have todo with Windows?". You...
  • softart
  • softart
  • 2007年10月27日 06:55
  • 288


前记 最近开始有时间折腾hadoop了,所以打算系统的学习一下,并做一些纪录。首先从环境搭建开始。本人使用hadoop 2.4.0版本。 虚拟机安装 本人只有两台电脑,貌似不够用,只能靠...
  • DLevin
  • DLevin
  • 2014年06月10日 21:29
  • 4406

Play a game (博弈论)

Play a game New Year is Coming! ailyanlu is very happy today! and he is playing a chessboar...
  • codeswarrior
  • codeswarrior
  • 2018年01月28日 16:22
  • 39

寒假软设--小型数据库进展(2)----'dir/b/ad/s f:\ 中几个参数讲解

问: 'dir/b/ad/s f:\ 中几个参数分别代表什么意思   解: /b使用空格式(没有标题信息或摘要) /a显示具有指定属性的文件./ad表示显示目录 (属性d目录,r只读文...
  • chenqiai0
  • chenqiai0
  • 2013年02月27日 17:27
  • 2026


/*  We start with the appropriate headers and then a function, printdir,     which prints out the c...
  • linsay111
  • linsay111
  • 2014年03月22日 19:18
  • 433

mysql-mariadb启动报错恢复数据([ERROR] mysqld got signal 6)

一、启动mysql(mariadb)报错(注:后文中mysql==mariadb): 二、查看mysql日志: vim /var/log/mariadb/mariadb...
  • tantexian
  • tantexian
  • 2016年02月26日 13:40
  • 3309


SVM训练的时候需要将图像地址写入txt文件然后读取, 以往我的fangf
  • cuteddj
  • cuteddj
  • 2014年08月20日 14:16
  • 968


  • chenyannan0617
  • chenyannan0617
  • 2016年03月19日 14:28
  • 1423

dir /s file的使用

dir /s file 在子目录下查找文件
  • kewb_2013
  • kewb_2013
  • 2013年02月21日 17:08
  • 279


cmd和command的区别 command 是精简dos. Cmd则是win2000或更高版的系统中新增的功能,表面看来是一样,但cmd比command功能要强大得多! command...
  • haiross
  • haiross
  • 2014年07月01日 15:56
  • 951
您举报文章:COMMAND.COM的破解.(有关DIR /S/A的BUG.)