Continous Build Integration with SourceSafe and Windows Batch Files

Posted by CraigS on Stack Overflow See other posts from Stack Overflow or by CraigS
Published on 2010-04-29T04:00:17Z Indexed on 2010/04/29 4:07 UTC
Read the original article Hit count: 367

I want to create a continuous build integration system for .NET using just Windows batch files and Visual Source Safe.

I've come up with the following batch file so far -

set ssdir=\\xxxx\vss
cd d:\mydir
"C:\Program Files\Microsoft Visual SourceSafe\ss.exe" diff "$/sourcedir" -R -Q > diffout.txt

This will spit out a file containg lines like "SourceSafe files different from local files" when a change has been made.

My challenge is to figure out if those lines are in the file, then do a get and kick off MSBuild if they are. I'd then schedule the batch file to run every 10 minutes or so.

Anyone got any thoughts on how to do that? Or any other ways of doing continuous build integration without downloading a complicated build automation system?

Update: Happy to use cscript or powershell too, though not really familiar with those environments. My main aim is to avoid installing 3rd party software

© Stack Overflow or respective owner

Related posts about batch-files

Related posts about .NET