Get List of Files checked-out in Visual Source Safe 6.0

kamleshrao picture kamleshrao · Aug 3, 2009 · Viewed 7.7k times · Source

On a weekly basis, I need to generate a List of Files from my Visual Source Safe 6.0 server, which are in Checked-out State. The list should provide the Filename and the User ID which has checked-out the file.

Is there any command-line program which I can use to achieve the above objective? Or is there any external tool/utility to do this job for me?

Answer

Bill Paetzke picture Bill Paetzke · Mar 4, 2011

From the command line:

  1. cd C:\Program Files\Microsoft Visual SourceSafe
  2. SET SSDIR=<path to folder containing srcsafe.ini>
  3. ss Status $/ -R > checked-out-files.txt

And then check the contents of checked-out-files.txt for your check-outs.

For example:

My srcsafe.ini was in C:\Program Files\Microsoft Visual SourceSafe\MasterDatabase.

So, my command line looked like this:

  1. cd C:\Program Files\Microsoft Visual SourceSafe
  2. SET SSDIR=MasterDatabase
  3. ss Status $/ -R > checked-out-files.txt

That's it. Easy.

To get only one user's check-outs:

Way to see all files ever checked into Visual SourceSafe by a user?