开发者

How do I delete .svn files with total commander?

开发者 https://www.devze.com 2023-03-12 06:34 出处:网络
I want to delete all svn files in a folder and its subfo开发者_StackOverflow社区lder with Total Commander.

I want to delete all svn files in a folder and its subfo开发者_StackOverflow社区lder with Total Commander.

I tried searching for *.svn and in advanced tab I checked hiddens file on.

But, I still get "[No files found]", what can I do to find those files?


As for me, I search .svn, then I see a list of directories, press "Feed to listbox", Ctrl+A, Shift+Delete. It works great in Total Command 7.50.


Did you set Configuration>Display>Show hidden/system files?

.svn is not a file but a directory. So if you want to select the attributes (you actualy don't need this), then you must also select "Directory"


To do it with a button, build a bat file, for example called "deleteSvn.bat" with this code:

@echo off
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S *.svn*') DO RMDIR /S /Q "%%G"
if not errorlevel 1 goto final
echo Removed all .svn folders
pause
:final
pause

create a command button and assign as the path to run the bat such as d:\bats\deleteSvn.bat

Then use the button at the root of the folder from which you want to delete .svn

0

精彩评论

暂无评论...
验证码 换一张
取 消