오늘은 MS에서 나온 소스세이프 자동로그인 하기를 작성해보겠습니다.


소스세이프는 프로그램을 여러명이 작성할때나 최신소스를 관리한다던가, 소스보안을 유지할때  유용한 소스관리툴입니다. 근데 저는 로그인을 Administrator로 하기때문에 소스세이프의 사용자와 다를 문제가 됩니다.




다른 분한테는 작은 문제일지 모르지만 저한테는 일일이 직접 이름치고 암호를 쳐야 합니다.

그래서 혹시나 자동로그인 기능이 있지 않을까 해서 찾아보았는데 있네요. 관련URL은 VS2005 유틸인데 거의 비슷하게 적용이 되는거같습니다. 로그인기능이 되는거 보니 비슷한거 같다고 생각이듭니다. 태클 반사~


http://msdn.microsoft.com/ko-kr/library/ms181130%28v=vs.80%29.aspx


소스세이프 관리 프로그램을 호출하는 프로그램은 SSEXP 인데요,


파라미터를 보면 다음과 같습니다.


The following table describes options available with SSEXP. None of these options is dependent on the others.

-A

Always shows the merge window reflecting all merge operations.

-D<variable>

Identifies a Data_Path initialization variable used in the Srcsafe.ini file. Use this option to create an alias for a database so that you do not have to remember or type out the path to Srcsafe.ini each time you run SSEXP.

-P<project name>   --> 프로젝트 셋팅하는것 같구요.

Identifies the project for which to launch Visual SourceSafe Explorer. This option can be used with e-mail software that supports icons to send a pointer to your Visual SourceSafe project. Alternatively, it can be used to create a Windows icon that always opens Visual SourceSafe in a particular project.

-S<\\server\share\path> --> 소스세이프 서버 경로

Identifies a path to a specific Srcsafe.ini file, overriding Visual SourceSafe's normal search method for Srcsafe.ini files.

-Y<user,pwd>  --> 이곳이 우리가 필요한 기능인거 같습니다.

Specifies user name and password, avoiding the Visual SourceSafe Login dialog box.

/edit 

Specifies an edit operation that is basically equivalent to the operation of the Edit File command in Visual SourceSafe Explorer.

/view

Specifies an edit operation that is basically equivalent to the operation of the View File command in Visual SourceSafe Explorer.

/diff

Specifies an edit operation that is basically equivalent to the operation of the Show Differences command in Visual SourceSafe Explorer.

/merge

Specifies an edit operation that is basically equivalent to the operation of the Merge command in Visual SourceSafe Explorer.

기능이 많이 있네요~


예제를 잠깐 보면


Launches Visual SourceSafe in the Code project: 

    ssexp -P$/Word/Code -->소스세이프 프로젝트의 /Word/Code로 시작을 합니다.


Uses one icon to access a Visual SourceSafe database at \\DEV1\SourceSafe:

    ssexp -S\\DEV1\SourceSafe 

    --> \\DEV1\SourceSafe의 소스세이프 디비에 접속을 합니다.


Launches the Visual SourceSafe internal editor to edit the file c:\temp\File.txt:

     ssexp /edit c:\temp\File.txt 
    -->c:\temp\File.txt:파일을 내부편집기를 이용하여 편집합니다.


대충 설명을 했고, 이제 자동로그인기능을 설명해보겠습니다.


소스세이프 아이콘의 속성을 보면(다른 아이콘을 따로 만들어도 괜찮습니다.) 다음과 같이 나오겠죠~


그러면 대상항목의 파라미터를 조금 바쭤줍니다.


"C:\Program Files\Microsoft Visual Studio\Common\VSS\win32\SSEXP.EXE"

       "-s\\DEV1\F$\SourceSafe\Project"   -y "user1","passwd"

-s 옵션은 소스세이프 데이타베이스에 접근하는거고, -Y가 바로 자동로그인 기능이네요.


user1: 소스세이프 아이디

passwd: 소스세이프 암호


이렇게 설정해 놓고 아이콘을 클릭하면 다음번에 할때는 자동으로 로그인 됩니다.






+ Recent posts