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-02 23:44
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Help, how to use a batch file to delete all permission-protected folders in a directory! View 1,015 Replies 1
Original Poster Posted 2006-12-30 10:55 ·  中国 广东 肇庆 端州区 电信
初级用户
Credits 44
Posts 16
Joined 2006-09-23 22:11
19-year member
UID 63478
Gender Male
From 广东省
Status Offline
:oI have N files under E:\net\ and I want to delete all of them, but they have permissions. How can I delete them all at once under the current user? I tried RD foldername /s/q before, but it couldn't delete them and said the files inside the directory/folder had no permission to be deleted. Also, I don't want to type the file names and delete them one by one. Like deleting files, you can use wildcards, but I don't know how to use wildcards for folders!
Asking everyone for some guidance.... thanks, I need it urgently!:(

[ Last edited by Bee on 2006-12-30 at 10:57 AM ]
Floor 2 Posted 2006-12-31 11:53 ·  中国 四川 南充 电信
超级版主
★★★★
我爱DOS
Credits 5,310
Posts 2,044
Joined 2005-09-26 12:00
20-year member
UID 42843
Gender Male
From 四川南充
Status Offline
Forum Jump: