Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Command line 是否使用命令行获取指定标签的VSS项目树?_Command Line_Visual Sourcesafe - Fatal编程技术网

Command line 是否使用命令行获取指定标签的VSS项目树?

Command line 是否使用命令行获取指定标签的VSS项目树?,command-line,visual-sourcesafe,Command Line,Visual Sourcesafe,与这个问题类似: 我正在尝试编写一个脚本,以获取指定标签的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 V

与这个问题类似:

我正在尝试编写一个脚本,以获取指定标签的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的版本进行了尝试,效果很好!只是点吗

有人知道如何在命令行上列出项目的所有标记版本吗


--Alistair

花了几个小时后,我终于找到了您提供的脚本中的小故障

简单地用下面一行中的Vl替换Vl。剩下的是完美的

%ss% get %VSSRoot% -Vl%version% -GLtemp -R
享受吧

阿西夫