Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Dear monks,

I am attemping to use Win32::OLE to Automate Visual Sore Safe.
And I am making very little head way :(

I want to be able to do things like:
  • List projects (i.e. ss.exe Dir)
  • Change current project
  • Add file(s) to a project
  • ...
    I have been poking around google and all I can
    find difficult to read and understand VB examples.
    Can any monk help?
    • Comment on How do I list projects in VSS with Perl OLE?
  • Replies are listed 'Best First'.
    Re: How do I list projects in VSS with Perl OLE?
    by pfaut (Priest) on Jan 10, 2003 at 21:42 UTC
    Re: How do I list projects in VSS with Perl OLE?
    by John M. Dlugosz (Monsignor) on Jan 11, 2003 at 06:21 UTC
      I got the VB-based doc on programming Source Safe, which claims to be a Object Model reference but is incomplete and has duplicated text; probably someone's notes that they just threw into the docs.

      And, use the OLE typelib browser to find out what functions are really available and what they return. From that, and trying one line at a time and looking at the results and the actual return values, you can figure it out.

      Another tip: the ole constants module uses a different name than the main OLE module to resolve the VSS target.

      —John