Discussion forum for all Windows batch related topics.
Moderator: DosItHelp
-
vijays3
- Posts: 2
- Joined: 02 Oct 2009 23:33
#1
Post
by vijays3 » 13 Oct 2009 01:11
Hi all
i have urgent requirement please help me ..
i need batch script which can delete multiple Ej* directories with having files also in one go..
Please help me to get it done
Thanks and regards
Vijay sahu

-
avery_larry
- Expert
- Posts: 391
- Joined: 19 Mar 2009 08:47
- Location: Iowa
#2
Post
by avery_larry » 14 Oct 2009 11:30
*UNTESTED* (and dangerous)
cd to your parent directory.
for /d %a in (ej*) do rd /s /q "%a"
That's from the command line. For a batch script, change %a to %%a