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-27 10:32
中国DOS联盟论坛 » 其它操作系统综合讨论区 » How to force delete a folder that is in use? View 2,170 Replies 3
Original Poster Posted 2007-11-23 16:26 ·  中国 江苏 苏州 电信
初级用户
Credits 77
Posts 29
Joined 2007-11-13 12:27
18-year member
UID 102531
Gender Male
Status Offline
For example, I open D:\back

Run del.bat inside it

The batch content is rd /s/q d:\back

And this bat only deletes all files under d:\back, but does not delete the d:\back folder..

How to do it? The premise of deletion is that del.bat must be inside the back folder..

Just like shift+del to delete, the directory is open. Also force delete.
Floor 2 Posted 2007-11-23 16:52 ·  中国 广东 广州 电信
新手上路
Credits 18
Posts 8
Joined 2007-01-07 05:42
19-year member
UID 75689
Gender Male
Status Offline
It can be written like this:
cd\
rd /s/q d:\back
Floor 3 Posted 2007-11-23 17:04 ·  中国 江苏 苏州 电信
初级用户
Credits 77
Posts 29
Joined 2007-11-13 12:27
18-year member
UID 102531
Gender Male
Status Offline
What does adding a `cd\` mean? Is it going to the root directory of drive D? Then execute the following command?
Floor 4 Posted 2007-11-24 09:11 ·  中国 北京 联通
高级用户
★★
Credits 652
Posts 193
Joined 2005-09-25 00:00
20-year member
UID 42822
Status Offline
"cd\" is to return to the root directory of the current drive no matter where you are
Forum Jump: