Google 网上论坛不再支持新的 Usenet 帖子或订阅项。历史内容仍可供查看。

VSS project size

已查看 27 次
跳至第一个未读帖子

Sout

未读,
2004年1月14日 16:10:372004/1/14
收件人
Is there a way I can find out the size of whole project
in VSS??? I look at an article in MSDN under Visual
Sourcesafe 6.0 automation, but it doesn't contain the size
object.

I know it's possible to find the size of an individual
file.
Your help is greatly appreciated!

Thanks
Sout

Rich Knox [MS]

未读,
2004年1月19日 15:01:192004/1/19
收件人
You can get file size from the SourceSafe command line. Make sure the win32
folder in your VSS install is on your path. Also set the SSDIR environment
variable to the folder that contains the srcsafe.ini file for your VSS
database. From a DOS prompt enter:
ss properties $/Project /r

to get a recursive property report. This gives you a lot more information
than you want, You can filter it some by entering:
ss properties $/ /r | findstr "File: Size:"

This gives you output looking like this:
File: $/MYFRAMEWORK/foo.txt
Size: 26 bytes 2 lines
File: $/MYFRAMEWORK/A/baz.txt
Size: 23 bytes 2 lines
File: $/MYFRAMEWORK/A/quux.txt
Size: 12 bytes 1 lines

You could write a script to parse this further and give you a total size.

- Rich Knox [MSFT]

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
| From: "Sout" <anon...@discussions.microsoft.com>
| Subject: VSS project size
| Date: Wed, 14 Jan 2004 13:10:37 -0800

0 个新帖子