/ Published in: Visual Basic
Expand |
Embed | Plain Text
'deletes all .svn folders Set objFSO = CreateObject("Scripting.FileSystemObject") objStartFolder = Wscript.Arguments(0) Set objFolder = objFSO.GetFolder(objStartFolder) 'Wscript.Echo objFolder.Path 'Set colFiles = objFolder.Files 'For Each objFile in colFiles ' Wscript.Echo objFile.Name 'Next 'Wscript.Echo ShowSubfolders objFSO.GetFolder(objStartFolder) Sub ShowSubFolders(Folder) For Each Subfolder in Folder.SubFolders 'Wscript.Echo Subfolder.Path Set objFolder = objFSO.GetFolder(Subfolder.Path) Set colFiles = objFolder.Files 'For Each objFile in colFiles ' Wscript.Echo objFile.Name 'Next 'Wscript.Echo if(instr(Subfolder.Path,".svn")) then 'Wscript.Echo Subfolder.Path objFSO.DeleteFolder Subfolder.Path,True else ShowSubFolders Subfolder end if Next End Sub
Comments
Subscribe to comments
You need to login to post a comment.

I'm not sure why anyone would want to delete the .svn folder, but the snippet of code could be useful for other things.
wasnt aware of tortoieses export functcion, but its still nice for copying unless you have tortoise svn installed