![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-27 09:34 |
47,812 topics / 349,912 posts / today 0 new / 48,264 members |
| 其它操作系统综合讨论区 » How to force delete a folder that is in use? |
| Printable Version 2,169 / 3 |
| Floor1 braveboy | Posted 2007-11-23 16:26 |
| 初级用户 Posts 29 Credits 77 | |
|
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. |
|
| Floor2 lylingyong | Posted 2007-11-23 16:52 |
| 新手上路 Posts 8 Credits 18 | |
|
It can be written like this:
cd\ rd /s/q d:\back |
|
| Floor3 braveboy | Posted 2007-11-23 17:04 |
| 初级用户 Posts 29 Credits 77 | |
|
What does adding a `cd\` mean? Is it going to the root directory of drive D? Then execute the following command?
|
|
| Floor4 alchemist | Posted 2007-11-24 09:11 |
| 高级用户 Posts 193 Credits 652 | |
|
"cd\" is to return to the root directory of the current drive no matter where you are
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |