Posts

Showing posts with the label SourceControl

Small one - SourceSafe via command line

Yes, I haven't been blogging for quite a bit and this small post is not going to change that but at least it is a little somethin'. I've been digging into F# and have had some great learning experience but this is nothing to really present now. Today I show a little snippet that let's you load some project ("XYZ") from SourceSafe into a specific folder (&ltTarget Directory&gt). This may come in handy in some sort of automatic build invironment. At first you need to define, i.e. set as environment variables: 1. SourceSafe User Account, supplied with sufficient privileges to actually access the project you want to retrieve 2. The account's password 3. The path to the SourceSafe DB's SourceSafe configuration file (srcsafe.ini) Next you ask SourceSafe to change the working directory for the project, you are going to load. You do this via "ss Workfold". The last step is to load/get the actual project into the working directory. SET SSUSER=...