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

隐身守侯 提交于 2019-12-08 03:30:41

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/3422695/get-a-vss-project-tree-for-a-specified-label-using-the-command-line

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!