Solved

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

Posted on 2007-03-26
1
205 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

912 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now