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-26 15:43
中国DOS联盟论坛 » 其它操作系统综合讨论区 » Question about how the rd /s /q command works View 1,372 Replies 3
Original Poster Posted 2009-02-14 23:45 ·  中国 四川 达州 电信
新手上路
Credits 7
Posts 4
Joined 2008-11-12 21:40
17-year member
UID 130796
Gender Male
From 渠县
Status Offline
When I used the rd /s /q command to delete a malformed file with spaces in its name, somehow all the shortcuts on the desktop were deleted, the items in the Start menu were reduced, and even the options in the menu that appears when right-clicking on the desktop were reduced. Even more infuriating, “Shared Documents” on my computer became inaccessible, “User Documents” was deleted, and the whole thing is too awful to look at...........
The file I created was: (created on the desktop)
@echo off
md "hero \"
pause
But when deleting it, I accidentally typed rd /s /q hero \, missing the quotation marks, and then the situation described above appeared on the desktop. I don't know how this result came about internally, and whether there is any way to solve it, at least to access “Shared Documents.” If it can be restored to its original state, I would be extremely grateful.



————————————————————————————————
Moved from DOS Troubleshooting & Problem Discussion (Answer Room)
Obviously posted in the wrong section. Since this is a new forum user, no punishment will be given for now. Please pay attention in the future.
——Administrator
————————————————————————————————
Floor 2 Posted 2009-02-15 13:28 ·  中国 重庆 电信
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
1. If the data is very important, it is recommended to find a professional data recovery company (do not perform any operations yourself, otherwise it may increase the difficulty of recovery);

2. If the data is not too important, I personally recommend using FinalData (other similar software such as recovery 4 all, easy recovery, etc.) for recovery (none of the common recovery software can achieve a 100% recovery rate, so please be mentally prepared);

3. If you decide to recover the data yourself, it is recommended to use a no-install green version (to avoid writing data to the hard drive as much as possible) and put it on a USB flash drive or mobile hard drive. During the recovery process, when choosing the path to store the recovered files, you should also try to choose the USB flash drive or mobile hard drive.
Floor 3 Posted 2009-02-15 22:01 ·  中国 四川 达州 渠县 电信
新手上路
Credits 7
Posts 4
Joined 2008-11-12 21:40
17-year member
UID 130796
Gender Male
From 渠县
Status Offline
The data isn't important. I just don't understand how it is handled internally, and only now did I realize that “Shared Documents” was actually deleted. Is there any remedy? Edit the registry?
Floor 4 Posted 2009-02-18 22:18 ·  中国 四川 德阳 电信
中级用户
★★
Credits 274
Posts 192
Joined 2009-01-07 21:09
17-year member
UID 136069
Gender Male
Status Offline
It seems like it deletes its subdirectories one by one
Forum Jump: