SourceSafe command line (11:45:31)
| Tag: vssCommand LineIt |
Category: Software Development |
LEnvironment Settings
NVSS must be installed locally
NAdd the directory where VSS is located (such as C: "Program Files" Microsoft Visual SourceSafe) to the System Path
UBatch writing: setPATH = % PATH %; vsspath
NAdd the environment variable SSDIR to the path of the target VSS server (for example, "172.16.1.40" VSS_PATH)
UBatch writing: set SSDIR = vssserver
LCommand line options
NYou can use either of the following methods to prevent the command line from asking about user authentication information:
UAdd the following options to each command line:-Yusername, password (no space)
UAdd Environment Variables
• Set ssuser = <username>
• Set sspwd = <password>
UAvoid the command line asking "Yes" and "No" (for example, whether to create a directory)
• Add the following options to each command line:
- I-Y Yes for all questions
- I-N No is answered for all questions.
- -I Use default answers to all questions
- -I- No parameters are input for all questions answered
LCommon commands
NSs CP $/SobeyNM
NSpecifies the current directory on VSS, and subsequent operations will take this as the current directory
USs Get-I-Y-R
• Recursively retrieve all the sub-files and sub-folders in the current VSS directory to the current local directory.
• Ss Get $/Project/sub-I-Y-R
- Recursively retrieve
• Ss CheckOut Interface. h-I-Y
- Checkkout VSS specifies the file in the current directory to the current directory (not the relative directory structure of the default working directory)
• Ss CheckIn Interface. H.264 I-Y
- The specified file in the current directory of CheckIn is in the current directory of VSS.
• Ss Label-L "Label Name"-I-Y
- Add Label for current directory
- The VSS Label cannot be duplicated because-I-