Solved

Get list of all Sourcesafe files and version?  easy way?

Posted on 2007-03-26
1
206 Views
Last Modified: 2013-11-25
I need to get a list of all the files in Visual Source safe aswell as their versions.  I know I can get the versions if I right-click and select Properties but want to know if there is an easy way to print the files along with their versions as there are hundreds of them.
I have a list of what's currently in Production (stored in a database seperate to VSS).  This lists the file name aswell as the version.  I need to do a comparison against what's in VSS, so I need to generate the same type of list.
Can anyone please point me in the right direction? I have no idea whether this is actually possible ?!?!  Maybe I could use a script?
Thanks :-)
0
Comment
Question by:ciara_barry123
1 Comment
 
LVL 65

Accepted Solution

by:
RobSampson earned 500 total points
ID: 18887156
Ciara,
You can use the GetFileVersion method of the File System Object like this:
'=========================
If objFSO.FileExists("C:\Program Files\Citrix\icaweb32\wfica.ocx") = True Then
      strFileVersion = objFSO.GetFileVersion("C:\Program Files\Citrix\icaweb32\wfica.ocx")
Else
      'MsgBox "File cannot be found."
End If
'=========================

If you combine this with a routine that gives you all of the files in a folder, you can loop through them.

Regards,

Rob.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: gr8gonzo
Git can be a complicated version control system for beginners, but it definitely is one of the best ones out there. Since this article assumes that you're starting at square one, it will skip over things that Git -can- do and will focus on the typic…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question