1. Set the VSS command lineProgramSs.exe path:
Path = % PATH %; X :\...... \ Microsoft Visual Studio \ common \ VSS \ Win32
2. Set the path of the VSS database (Note ):
Set ssdir =\\ cmserver \ Project
3. Set the user name for log on to VSS:
Set ssuser = youraccount
4. Set the VSS logon password:
Set sspwd = yourpwd
5. vss check out single file:
SS checkout $/vsspath/filename
6. vss check in single file:
SS checkin $/vsspath/filename-c "your comment"
7. vss undo check out single file:
SS undocheckout $/vsspath/filename
8. vss check out the entire project contains all sub-projects (subdirectories) of the project (recursively ):
SS checkout $/vsspath/-R
9. vss check in the entire project contains all sub-projects (subdirectories) of the project (recursively ):
SS checkin $/vsspath/*-r-c "your comment"
10. Get the latest version of a single file:
SS get $/vsspath/filename
11. Fetch the entire project to the local device:
SS get $/vsspath/*-R
12. Take the files on the VSS server to the specified place (note that there is no space after "-Gl !) :
SS get-Glx: \ DEST $/vsspath/filename.txt
13. Other changes include label, merge, move, password, purge, recover, rename, rollback, share, undocheckout, workfold, and branch.
These commands change the content or environment of the VSS database.
14. commands in the VSS command line that do not change the database and environment, such as comparison, search, and display:
Diff, Dir, filetype, get, help, history, links, paths, project, properties, status, view, whoami
15. display the latest version, label information: SS Properties
16. display the checkout file: SS status
Note:
When "Y/N" is prompted during command line execution, you can directly create command parameters in the command line to avoid problems.
-I-Y: Yes
-I-n: No
On msdn, when you use commands like "get" and "check out" on the command line interface, VSS places the files in your current directory, instead
In the same way on the interface, place the corresponding files in the working directory you set. (What I don't understand now is, what is the purpose of the working path in the command line mode ?)
In addition, the execution is similar:
SS get-Gl "C: \ Program Files \ eclipse \ workspace \ abxx" $/kao_step3/abxx-r-I-y
Statement, it seems that the entire directory file is taken, regardless of the file version number?