2010-08-06 53 views
1

这个问题类似:使用命令行获取指定标签的VSS项目树?

Get all files from VSS for a given date?

我想编写一个脚本,得到一个VSS项目树指定的标签。我有这样的:

:: Path to the SS.exe command 
set ss="C:\Program Files\Microsoft Visual SourceSafe\ss" 

:: Path to the srcsafe.ini file for the repository 
set SSDIR=\\Glopsvrfile01\VSS_Data 

:: Path to the project root in VSS 
set VSSRoot="$/Customers/MyCustomer/MyProject" 

set /p version="Please enter a SourceSafe label: " 

mkdir temp 

:: vvv Here is the command vvv 
%ss% get %VSSRoot% -Vl%version% -GLtemp -R 

del /s /q temp\*.* 
rmdir temp 

,我绝对传递一个有效的标签(V1.0.29),但它只是回来了找不到

已经与标记TempLabel版本试了一下 版本,该工程!它只是点吗?

有谁知道如何在命令行中列出项目的所有标签版本?

- 阿利斯泰尔

回答

2

花费几个小时后,我终于找到你提供的脚本的小故障。

在下面的行中简单地用VL代替V1。剩余是完美的。

%ss% get %VSSRoot% -Vl%version% -GLtemp -R 

Enjoy!

Asif