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-14 03:09
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Why can't I delete hidden files under DOS? View 1,827 Replies 2
Original Poster Posted 2004-12-04 00:00 ·  中国 广东 东莞 电信
初级用户
Credits 109
Posts 2
Joined 2004-11-05 00:00
21-year member
UID 33319
Gender Male
Status Offline
Here's how things went. I had a machine originally with a Windows 98 system (on drive C), and later I installed a Windows XP system additionally (on drive D). Then I noticed that when using XP, the speed was extremely slow, so I wanted to uninstall XP. I went into 98 and formatted drive D. But when booting up, there was still a choice for two systems. XP couldn't be entered anymore. I wanted to remove the option to enter XP. And I thought of doing it like this:
1. Boot the system with a Windows 98 boot disk. 2. Del C:\boot*.* // Delete all files starting with boot 3. Del C:\nt*.* // Delete all files starting with nt 4. Del C:\hiberfile.sys // Delete the hibernation file 5. Del C:\pagefile.sys // Delete the paging file 6. Sys C: // Transfer Windows 98 system files 7. Finally, enter the command "Fdisk /mbr" at the command prompt and press Enter. But when I used dir to check the files in C:, I found they were all hidden files, and when I used dir/a, I could see them. When I ran del c:boot*.*, it prompted that the file was not found. The above steps 1 - 5 all prompted that the file was not found. May I ask how to delete these files? Besides, please teach me if there's a better way to delete XP? (I found on the Internet saying to use the 98 boot disk, boot up and then run format -ur, but it prompted: parameter format not correct - -ur. Also, using Super Rabbit, but it didn't work. Also, the method I don't want to do, format drive C and repartition.) Hope everyone can give more support.
Floor 2 Posted 2004-12-04 00:00 ·  中国 福建 厦门 电信
系统支持
★★★
Credits 904
Posts 339
Joined 2002-10-10 00:00
23-year member
UID 1904
From 厦门
Status Offline
The files in drive C that don't need to be deleted. Just do SYS c: and if you want, do fdisk /mbr to cut off XP, then delete the XP files in drive D. If you really need to delete, why not delete in Windows 98? Under DOS, to delete, you need to first remove its attributes: c:
attrib -s -h -r boot*.*
del boot*.*
Floor 3 Posted 2004-12-17 00:00 ·  中国 安徽 宿州 泗县 电信
银牌会员
★★★
Credits 1,339
Posts 595
Joined 2004-05-26 00:00
22-year member
UID 25306
Gender Male
From 安徽 宿州
Status Offline
What the moderator said is right. First, we need to remove the hidden attributes of these files.
Forum Jump: