VSS:手工创建数据库

VSS手工创建数据库的步骤(设数据库根目录为E:\VSSDB):

1.在根目录中创建名为srcsafe.ini(全局配置文件)的文件,文件内容如下:

Data_Path = data
Temp_Path = temp
Users_Path = users
Users_Txt = users.txt
2.在根目录中创建文件夹date、temp、users以及文件users.txt。

3.在users.txt文件中输入以下内容:

Admin = users/admin/ss.ini
4.在文件users中创建名为Template.ini的文件,文件内容如下:

; ss.ini 
; 
; This file contains all the variables that "customize" Visual 
; SourceSafe to your particular needs. The ss.ini variables are 
; documented in the Visual SourceSafe User's Manual. Only a few of them 
; are placed in this file by default. 

; Visual C++ programmers should remove the semicolon from the following 
; line, to uncomment it. Other programmers REPLACE the line with 
; different masks. 
; Relevant_Masks = *.c, *.h, *., *.asm 

; The following line prevents you from being asked for a checkout 
; comment. 
Checkout_Comment = - 

; The following lines force Visual SourceSafe not to execute certain 
; file types. 
.reg (Win) = notepad.exe 
.vbp (Win) = notepad.exe 
.vcp (Win) = notepad.exe 
.mak (Win) = notepad.exe 
.bat (Win) = notepad.exe 

; Your current Visual SourceSafe project. 
Project = $/ 
5.在文件夹users中创建子文件夹admin。

6.在文件夹admin中创建空文件ss.ini和ssadmin.ini。

7.执行以下两条命令:

C:\Program Files\Microsoft Visual Studio\VSS\win32>mkss E:\VSSDB\data
C:\Program Files\Microsoft Visual Studio\VSS\win32>ddconv E:\VSSDB\data

至此,数据库创建完成,并且创建一个用户admin,密码为空。

注:Template.ini文件是必须的,否则无法添加新的用户,抛出错误:Invalid DOS Path。




  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值