LoginSignup
0
0

More than 5 years have passed since last update.

VSS CLI

Last updated at Posted at 2016-12-01

About Visual SourceSafe Commands
https://msdn.microsoft.com/ja-jp/library/asxkfzy4(v=vs.90).aspx

Commands

CP

Sets the current project path.
https://msdn.microsoft.com/ja-jp/library/z67ws9za(v=vs.90).aspx

Add

Adds new files.
https://msdn.microsoft.com/ja-jp/library/tszt2szw(v=vs.90).aspx

Checkout

Checks out a file and makes the working copy of the file in the current project writable.
https://msdn.microsoft.com/ja-jp/library/7wbe5121(v=vs.90).aspx

Checkin

Updates.
https://msdn.microsoft.com/ja-jp/library/tt66dycz(v=vs.90).aspx

Get

Retrieves read-only copies
https://msdn.microsoft.com/ja-jp/library/661w6e3d(v=vs.90).aspx

Options

-C

comment.
https://msdn.microsoft.com/ja-jp/library/96xcwzsx(v=vs.90).aspx

-C-

Tells the command to use no comment.

-Ctext

Uses the string text as the comment for all items.

Sample

vss_manager.ps1
$Project = $Args[0]
$File    = $Args[1]
$NewFile = $Args[2]
$Comment = "-C" + $Args[3]

ss CP $Project
ss Get $File
if ($?) {
    ss Checkout $File -C-
    COPY $NewFile $File
    ss Checkin $File $Comment
} else {
    ss Add $File $Comment
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0