VBScriptを使ったSourceSafeオートメーションを見たら,超かんたんっぽかったので早速使わせていただきました。汚物は消毒だー!
Option Explicit ' 本来Visual SourceSafeに格納すべきではないのにされてしまっている ' Visual Studio中間ファイル類(とサイズ,ただし履歴ぶんは除く)を列挙します ' 注意1: cscript.exeから実行しないとStdOutハンドルは無効 ' 注意2: VSSItem.SizeプロパティはVSS6.0非対応 Const VSSITEM_PROJECT = 0 Const VSSITEM_FILE = 1 Const SourceSafeIni = "\\YourServer\Shared\VSS\srcsafe.ini" Const Username = "guest" Const Password = "" ' 削除されたファイルもカウントするかどうか Const IncludeDeleted = True ' 引数としてプロジェクトパスが渡せます Dim RootPath If 0 < WScript.Arguments.Length Then RootPath = WScript.Arguments(0) Else RootPath = "$/" End If Dim GbgExp Set GbgExp = new RegExp GbgExp.Pattern = "(.pch$)|(.idb$)|(.obj$)|(.res$)|(.sbr$)|(.bsc$)|(.ilk$)|(.map$)|(.pdb$)|(.opt$)|(.suo$)|(.ncb$)|(.clw$)|(.aps$)" ' お好みでもっと増やしてください Sub DispSize(ByVal Project) Dim item, items Set items = Project.Items(IncludeDeleted) For Each item in items If item.Type = VSSITEM_PROJECT Then DispSize(item) ElseIf item.Type = VSSITEM_FILE Then Dim matches Set matches = GbgExp.Execute(item.Name) If 0 < matches.Count Then Dim match For Each match In matches On Error Resume Next WScript.StdOut.WriteLine(item.Size & vbTab & item.Spec & vbTab & match) Next End If End If Next End Sub Dim SsDb Set SsDb = CreateObject("SourceSafe") SsDb.Open SourceSafeIni, Username, Password Dim RootProj Set RootProj = SsDb.VSSItem(RootPath) DispSize(RootProj)