开发者

Get a VSS project tree for a specified label using the command line?

Similar to this question:

Get all files from VSS for a given date?

I am trying to write a script that get a VSS project tree for a specified label. I have this:

:: 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

and I am de开发者_StackOverflow中文版finitely passing in a valid label (V1.0.29) but it just comes back with Version not found

Having tried it with a version labeled TempLabel, that works! Is it just the dots?

Does anyone know how to list all the labeled versions of a project on the command line?

-- Alistair


After spending couple of hours, finally I able to find the small glitch in your provided script.

Simple replace Vl with VL in the line below. Remaining is perfect.

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

Enjoy!

Asif

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜