Deep_Level_Shark Posted January 19, 2012 Share Posted January 19, 2012 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 More sharing options...
0 123456789A Posted January 19, 2012 Share Posted January 19, 2012 Can't you just do a file search for .config in the base folder and delete what comes up? Link to comment Share on other sites More sharing options...
0 +Dick Montage Subscriber² Posted January 19, 2012 Subscriber² Share Posted January 19, 2012 Windows search for .config Delete results? Link to comment Share on other sites More sharing options...
0 Deep_Level_Shark Posted January 19, 2012 Author Share Posted January 19, 2012 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 More sharing options...
0 +Dick Montage Subscriber² Posted January 19, 2012 Subscriber² Share Posted January 19, 2012 Advanced options: Search for hidden folders Link to comment Share on other sites More sharing options...
0 articuno1au Posted January 19, 2012 Share Posted January 19, 2012 That would do it. Make sure the files are visible, then run the search. Link to comment Share on other sites More sharing options...
0 Nick H. Supervisor Posted January 19, 2012 Supervisor Share Posted January 19, 2012 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: EDIT: Damn, beaten to it. Oh well, at least mine has a pretty picture. Link to comment Share on other sites More sharing options...
0 Xexo Posted January 19, 2012 Share Posted January 19, 2012 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 More sharing options...
0 Phouchg Posted January 19, 2012 Share Posted January 19, 2012 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 More sharing options...
0 Deep_Level_Shark Posted January 19, 2012 Author Share Posted January 19, 2012 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 More sharing options...
0 Xexo Posted January 20, 2012 Share Posted January 20, 2012 nice pic! .... lazy polar beer ? There simply is not enough coffee on the north pole ! Link to comment Share on other sites More sharing options...
Question
Deep_Level_Shark
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