Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am on a Windows 7 box, and I have tortoisesvn on my machine. After getting a little familiar with svn and tortoisesvn on a code repository, I set up a local repository to manage revisions of some word and powerpoint documents.

I want to figure out some scripted way to output a set of files with the build/revision number embedded in the filename. I will then email the files to some business people to review.

For example, say I have a group of files in my working directory:


and TortoiseSVN repo browser tells me that I am currently at revision 21 for PresentA.pptx and PresentA-notes.docx but at revision 25 for PresentB.pptx, I would like some way to get 3 files with the following names:


Alternatively, if revision 25 is the current value for the repository, having all the names appended with -r25 would work, too.

share|improve this question

Maybe grepwin will do what what is needed?

grepWin is a simple search and replace tool which can use regular expressions to do its job. This allows to do much more powerful searches and replaces.

enter image description here

share|improve this answer

I have found SubWCRev.

It may do what I need, but I don't really know enough about Windows BATCH scripting (or that new Windows Powershell) to glue SubWCRev together with a file rename.

share|improve this answer
Your link seems to be broken, do you know of an alternative link? – Tom Wijsman Nov 5 '11 at 1:41
Fixed the link. – 8088 Nov 5 '11 at 4:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.