获取在 Visual Source Safe 6.0 中签出的文件列表
每周,我需要从 Visual Source Safe 6.0 服务器生成文件列表,这些文件处于签出状态。 该列表应提供文件名和检出该文件的用户 ID。
是否有任何命令行程序可以用来实现上述目标? 或者有没有任何外部工具/实用程序可以为我完成这项工作?
On a weekly basis, I need to generate a List of Files from my Visual Source Safe 6.0 server, which are in Checked-out State. The list should provide the Filename and the User ID which has checked-out the file.
Is there any command-line program which I can use to achieve the above objective? Or is there any external tool/utility to do this job for me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
从命令行:
cd C:\Program Files\Microsoft Visual SourceSafe
SET SSDIR=<包含 srcsafe.ini 的文件夹的路径>
然后检查checked-out-files.txt 的内容以进行签出。
例如:
我的
srcsafe.ini
位于C:\Program Files\Microsoft Visual SourceSafe\MasterDatabase
。因此,我的命令行如下所示:
cd C:\Program Files\Microsoft Visual SourceSafe
SET SSDIR=MasterDatabase
ss Status $/ -R > check-out-files.txt
就是这样。 简单的。
仅获取一个用户的签出:
如何查看用户签入 Visual SourceSafe 的所有文件?
From the command line:
cd C:\Program Files\Microsoft Visual SourceSafe
SET SSDIR=<path to folder containing srcsafe.ini>
ss Status $/ -R > checked-out-files.txt
And then check the contents of checked-out-files.txt for your check-outs.
For example:
My
srcsafe.ini
was inC:\Program Files\Microsoft Visual SourceSafe\MasterDatabase
.So, my command line looked like this:
cd C:\Program Files\Microsoft Visual SourceSafe
SET SSDIR=MasterDatabase
ss Status $/ -R > checked-out-files.txt
That's it. Easy.
To get only one user's check-outs:
Way to see all files ever checked into Visual SourceSafe by a user?
SS.exe 可用于此类目的。 它将位于 VSS 安装目录中,您需要执行一些配置步骤才能将其设置为方便运行。
http://msdn.microsoft.com/en- us/library/5ws92cw2%28VS.80%29.aspx
我相信您正在寻找的具体命令是 状态。
例如
ss 状态 $/ -R
SS.exe can be used for such purposes. It will be in the VSS install directory, there are a few configuration steps you need to do to set it up to run conveniently.
http://msdn.microsoft.com/en-us/library/5ws92cw2%28VS.80%29.aspx
I believe the specific command you are looking for is Status.
e.g.
ss Status $/ -R
也可以使用 vbscript 来执行此操作,我过去曾这样做过,但不再有权访问这些脚本。
这是帖子链接,其中谈到做一些与你想要的类似的事情。
另外,这里有一个指向实用程序的链接,它提供(大部分)实时通过监视日志文件的更改来更改更新。
It is also possible to do this with vbscript, I have done so in the past but no longer have access to those scripts.
Here is a link to a post that speaks of doing something similar to what you want.
Also, here is a link to a utility that gives (mostly) real time change updates by monitoring changes to the journal file.