VSS command line

Source: Internet
Author: User

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?

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.