• 0

I need a utility tool to remove folders


Question

I have a base folder MyFolder

This MyFolder has lots of sub-folders. In each of these sub-folders there are folders called .config .

I need a utility tool which could help me to delete all the .config folders from MyFolder.

In simple words:

Input : MyFolder

output: MyFolder without .config folders

Could you please suggest any utility tool so that I can accomplish this task easy way ?

My OS is windows XP

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

Windows search does not work. No search result . Is it because .config is hidden folder ?

The .config folders can be seen only when you enable tools > Folder options > View > show hidden files and folders

Link to comment
Share on other sites

  • 0

Windows search does not work. No search result . Is it because .config is hidden folder ?

The .config folders can be seen only when you enable tools > Folder options > View > show hidden files and folders

And you can set it to search for hidden files and folders:

gnO1a.jpg

EDIT: Damn, beaten to it. Oh well, at least mine has a pretty picture.

Link to comment
Share on other sites

  • 0

EDIT : Reread the task and changed the scripts

Create a cleanup.cmd file containing :

@echo off
for /D %%d in (*) do call clean.cmd %%d

and a clean.cmd file containing :

@echo off
if not exist %1\.config goto EXIT
rd /S /Q %1
echo Removed %1
:EXIT

And keep/run it in your MyFolder

Link to comment
Share on other sites

  • 0

forfiles /s /m .config /c "cmd /c if @isdir == TRUE rd /s /q @path" > nul[/CODE]

Sorry, forget it, XP doesn't include [font=courier new,courier,monospace]forfiles[/font] by default.

Link to comment
Share on other sites

  • 0

Advanced options: Search for hidden folders

Worked fine. It was helpful. Thanks

EDIT : Reread the task and changed the scripts

Create a cleanup.cmd file containing :

@echo off
for /D %%d in (*) do call clean.cmd %%d

and a clean.cmd file containing :

@echo off
if not exist %1\.config goto EXIT
rd /S /Q %1
echo Removed %1
:EXIT

And keep/run it in your MyFolder

EDIT : Reread the task and changed the scripts

Create a cleanup.cmd file containing :

@echo off
for /D %%d in (*) do call clean.cmd %%d

and a clean.cmd file containing :

@echo off
if not exist %1\.config goto EXIT
rd /S /Q %1
echo Removed %1
:EXIT

And keep/run it in your MyFolder

nice pic! .... lazy polar beer ?

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.