2010-08-06 51 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