Solved

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

Posted on 2007-03-26
1
209 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This script will sweep a range of IP addresses (class c only, 255.255.255.0) and report to a log the version of office installed. What it does: 1.)      Creates log file in the directory the script is run from (if it doesn't already exist) 2.)      Sweep…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

756 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