Discussion Locked

how to get Latest Version from VSS through java

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,
We are using VSS as central repository. Any one from our team can check-in & check-out various files. Everytime we need a latest file ,we use "Get Latest Version" cmd for this.

But now we want to have that latest version to be stored at the specified location using JSP [or simple java code]

Can any one tell me how can we do this.
Thanks,
Pinky

1 reply

by bgrissom

On your VSS server there is a Users directory. And in there, there is a directory for every user of your VSS installation. Find the directory that corresponds with the user ID you are using through Java at the command line. In that directory you will find an SS.INI file. Edit it to contain lines that look like this:
[$/ProjectDirectory/AnySubDir]
Dir (ServerName) = e:\CheckoutDir\SubDir
Dir (ServerName2) = e:\CheckoutDir\SubDir
The ServerName can be any server you want and the drive letter is an actual drive letter on the target server. When you do a checkout, Source Safe looks in your user directory for this SS.INI file to see if there is anything specify and will use it. Hope this helps, good luck.

This discussion is closed to new replies.