中国DOS联盟论坛

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-08 01:20
48,041 topics / 350,128 posts / today 3 new / 48,253 members
DOS批处理 & 脚本技术(批处理室) » [Help] Need a way to delete specified files in all directories on a specified drive
Printable Version  660 / 2
Floor1 lxxpsp2 Posted 2008-04-05 21:22
初级用户 Posts 11 Credits 27
I need something to delete specified files in all directories on a specified drive.

Please help me, thanks to everyone in advance.

I want a batch file that deletes 2 specified files in all directories and subdirectories on drive D.

I'm a newbie and don't know how to write it. Could you please help me write one?

Thanks to everyone in advance /!
Floor2 dreamseed Posted 2008-04-05 21:33
初级用户 Posts 10 Credits 38 From GZ
Delete all a.txt and b.txt on drive X:

cd /d x:\&del /s /f /q a.txt b.txt
Floor3 lxxpsp2 Posted 2008-04-05 23:57
初级用户 Posts 11 Credits 27
Thank you very much. I really understand too little about DOS, I need to study more!
But it can't delete these 2 files named wsock32.dll and wsock32.dlltmp.
I can delete them directly by hand. Why can't the batch file delete these 2 files!?!?
That's strange!

[ Last edited by lxxpsp2 on 2008-4-6 at 12:08 AM ]
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023