Nico/All struggling with VSSGET,

Yes. I was running the SS command below on the command-line.
We have more than one sourcesafe databases and we need to do 
some juggling of files between these databases in the build process.

I tried the SET SSDIR command and it works fine. Thanks!!
but i have to connect to one soursafe database first, get a file, connect to
the 
second sourcesafe database and check it in there. (yuck!!)

So the question is how can I run the SET command before doing a get and
before doing the check-in?
Can I use EXEC for this?

An alternative solution I found after searching the archives is -

1) Copy SS.exe and SSUS.DLL to the share where the SRCSAFE.INI resides 
   on the remote VSS server (in my case,
\\RemoteVSSServerName\ShareName\sub-dir) 
2) For the VSSGET use these params -

        <vssget localPath="${build.src}"
        recursive="true"
        login="user,password"
        vsspath="/some/path/in/vss/project"
        ssdir="\\RemoteVSSServerName\ShareName\sub-dir"
        writable="true"/>

Note - We are running SS.EXE of the remote server by doing this.

This works for me. But I would prefer using the SET SSDIR, as I would not
have to copy SS.EXE and SSUS.DLL all over.

Thanks again.
- vineet


> Hi all,
>
> I keep getting a User not found error when I try to Get a file using this
> command line -
>
> ss Get $/version_1/readmeforprod.doc CPCode -GLC:\temp -I- -R -Yvbhatia,sa
> Password: sa
> User "vbhatia" not found
>
You are executing this command on the command-line? Or from an Ant-task? If
you execute it from the command-line are you sure VSS will access the
correct database? (Is there more than database, one without the user you
mentioned?). Generally I would say VSS is correct in telling you there is no
such user and you are maybe using a wrong database.

> Also, is there a way to open a sourcesafe database located on a remote
> server using VSSGET?

>From MSDS Online: "Setting the SSDIR environment variable tells VSS where to
find the SRCSAFE.INI file for the VSS server installation to which you want
to connect.  Do this by typing the following at the MS-DOS prompt:

set ssdir=\\server\share\vss

Where \\server\share\vss is the folder where the srcsafe.ini file is
located."

Hope this helps

Nico

Reply via email to