由于项目需要,采用vss进行源代码版本管理。只使用其中的少数几个命令:get cloak decloak workfold etc...
@echo off
path=%path%;E:\tools\microsoft\vss60c\VSS\Win32;C:\Program Files\Microsoft Visual Studio\VSS\win32
e:
cd E:\work\SinoTrans\src
@set SSDIR=\\172.16.0.142\海运项目二期$\
@set ssuser=fuzhonghua
@set sspassword=qazwsx
rem begin to get server-side code
ss workfold "$/Sinotrans Ocean II/06 Coding & Unit Testing/04 Source" "E:\work\SinoTrans\src"
ss cloak "$/Sinotrans Ocean II/06 Coding & Unit Testing/04 Source/com/sinotrans/marine/client"
ss get "$/Sinotrans Ocean II/06 Coding & Unit Testing/04 Source/" -r -i
rem begin to get client code
cd E:\work\SinoTrans\client
ss decloak "$/Sinotrans Ocean II/06 Coding & Unit Testing/04 Source/com/sinotrans/marine/client"
ss workfold "$/Sinotrans Ocean II/06 Coding & Unit Testing/04 Source/com/sinotrans/marine/client" "E:\work\SinoTrans\client"
ss cloak "$/Sinotrans Ocean II/06 Coding & Unit Testing/04 Source/com/sinotrans/marine/client/awakemgt/referencedll"
ss cloak "$/Sinotrans Ocean II/06 Coding & Unit Testing/04 Source/com/sinotrans/marine/client/creditmgt/referencedll"
ss cloak "$/Sinotrans Ocean II/06 Coding & Unit Testing/04 Source/com/sinotrans/marine/client/custsuppmgt/referencedll"
ss cloak "$/Sinotrans Ocean II/06 Coding & Unit Testing/04 Source/com/sinotrans/marine/client/ffsettlement/referencedll"
ss cloak "$/Sinotrans Ocean II/06 Coding & Unit Testing/04 Source/com/sinotrans/marine/client/papermgt/referencedll"
ss cloak "$/Sinotrans Ocean II/06 Coding & Unit Testing/04 Source/com/sinotrans/marine/client/sacontainer/bin"
ss cloak "$/Sinotrans Ocean II/06 Coding & Unit Testing/04 Source/com/sinotrans/marine/client/sahusbandry/bin"
ss cloak "$/Sinotrans Ocean II/06 Coding & Unit Testing/04 Source/com/sinotrans/marine/client/sasettlement/bin"
ss cloak "$/Sinotrans Ocean II/06 Coding & Unit Testing/04 Source/com/sinotrans/marine/client/statusmgt/referencedll"
ss cloak "$/Sinotrans Ocean II/06 Coding & Unit Testing/04 Source/com/sinotrans/marine/client/sysmgt/bin"
ss get "$/Sinotrans Ocean II/06 Coding & Unit Testing/04 Source/com/sinotrans/marine/client" -r -i
cd \
more detail pls refer to:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/guides/html/vstskuse_command_line_commands_and_options.asp