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-08-01 03:27
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » Question about DOS code View 715 Replies 1
Original Poster Posted 2003-10-20 00:00 ·  中国 天津 教育网
初级用户
Credits 105
Posts 1
Joined 2003-10-18 00:00
22-year member
UID 11435
Gender Male
Status Offline
I've been writing some more programs about hard disk read/write, and when I referred to the DOS source code, it felt like a complete mess. Has any expert had experience in this area? I'd appreciate your guidance. Also, under DOS, how is file deletion handled? For example, for a FAT32 partition, when deleting a directory entry, how is it processed? Is the FAT table modified? How is it modified? (I heard the FAT table is modified using some method, and it doesn't completely clear all FAT tables, supposedly for undelete.) I'd appreciate it if someone who understands this could tell me clearly, so I won't have to keep referring to that depressing DOS code.
Floor 2 Posted 2003-10-24 00:00 ·  中国 湖北 武汉 联通
银牌会员
★★★
Credits 1,681
Posts 512
Joined 2003-08-02 00:00
22-year member
UID 7953
Gender Male
Status Offline
Referring to DOS source code...? Geez...
Anyway, this is all I know:
In the DIR table, each file's information occupies 32 bytes, and it contains a deletion flag. When that byte has a specific value, the file is "deleted"; actually it has not been wiped from the hard disk.
Somehow somewhere I've got to choose.
No matter if it is win or lose.
Forum Jump: