Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

VSS - "find in files" - multiple files?

VSS - "find in files" - multiple files?

VSS - "find in files" - multiple files?

in VSS, there is the command "find in files"

there is more than one file I have to search for, and each search can take up to 4 or 5 minutes. is there any way to search for multiple files at once?

or is there a way to create a script to search for multiple files and save the text reports? and if so where would i write and implement the script? For example, does VSS support VBA?

thanks in advance

RE: VSS - "find in files" - multiple files?

Do you mean that you want to search in multiple files at once?  If you want to search for a string inside multiple files, then you can select all the files in a project that you want to search through and then go to Tools->Find In Files...  You can also select a project on the left side and then go to Tools->Find In Files... and it can search in that project and recursively in sub projects.

If you wanted to search for different strings across files, I'm not sure if that's possible.

As far VSS supporting VBA, it does have an automation interface.  The MSDN info on it is at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvss/html/msdn_vssole.asp

RE: VSS - "find in files" - multiple files?

Well, to sum up, I want to search in all the files in my VSS for references to multiple files.

For instance, I want to search for hyperlinks to "document.pdf" and "anotherdocument.pdf" in a website of about 14,000 files.

I am basically looking for a way to step up the functionality for "Find in Files" to search for more than one file at a time without me having to babysit the computer and save each report for each file.

The website is so big, each search takes like 4 minutes. I want to run a script that searches for the references to my PDFs, even if it's like 10 PDFs.

Maybe writing a program in Visual Basic is the answer? I don't know if VSS supports VBA.


RE: VSS - "find in files" - multiple files?


Well, I know how VBA works but have never really used VB. Your links to the Microsoft site only talk about VB, so I'll assume VSS doesn't actually support VBA.

Your links to the Microsoft site talk a lot about the "automation interface" as you call it, but I believe this is a software interface that only VB can utilize, as opposed to a GUI for writing code such as VBA.

How would I go about building an app with VB? Would I have to use Visual Basic Studio or whatever it's called?

RE: VSS - "find in files" - multiple files?

Sorry about that.  I'm not all that familiar with VB or VBA.  I just assumed that either could tap into the COM automation to make sourcesafe do what you wanted.  Besides, I'm not sure that the find in files functionality is exposed through the automation anyway.

Beyond that, if a regular expression can't encompass all the strings (i.e. links to files) that you need, then I personally don't know of another way using VSS.  Hopefully somebody else does.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close