OK.
oka.txt is created and added to SourceSafe.
oka.txt is checked out and then changed.
oka.txt is checked back into SourceSafe.
You should now be able to right click on oka.txt in SourceSafe and select show history. This should show you 2 versions. You can Get or View either of these 2...
Hi Keri-Lyn,
I am not aware of any way in which you can do this from a command line. Any label from command line that I know labels the most recent version. Again some VB6 code that might do the job. I have only done minimal testing on this as I do not want to mess with my SS database here...
Do you mean an actual physical copy of the file on the server?
e.g File1.Ver1, File1.Ver2, File1.Ver3 etc.
SourceSafe does not store the file versions like this.
Hi,
You should be able to rick click on any file in Source Safe and select Show History. This will show a history of all check ins into the database. There you should be able to get old files, Roll back etc.
Regards,
Hammy.
Hi Keri-Lyn,
Try this code, it will create a comma separated file called c:\ss.csv that you could import into SQL I am sure.
'=================================================
Option Explicit
Dim objVSSDatabase As New VSSDatabase
Dim intFreeFile As Integer
Private Sub cmdOK_Click()
'...
Soz,
Forgot you also need to add a reference to the VB6 app to Microsoft SourceSafe 6.0 Type Library. In my case this is
c:\program files\vss\win32\SSAPI.DLL
Hammy.
Hi Keri-Lyn,
Not 100% sure this will do you job, but should be a starting point at least for you. It is in VB6, so I hope that is OK. Just add a form with an OK button and add this code to it.
'=======================================================
Option Explicit
Dim objVSSDatabase As New...
If you add Environment variables of SSUSER and SSPWD to your system that should do the job.
To do this in XP, Start/Control Panel/System. In there select Advanced Tab and select the Environment Variables. Click New then SSUSER/SSPWD and the required values for the user and password.
I think...
Hi dazdar,
This code is pretty much untested. I have tested as much as I can up to the point of checking the updated code in, as I did not want to stuff our database up here. And I have not tested for multiple files. Basically it might do your job. If possible test on a backup of your database...
Been looking into this. Should be possible using the SSAPI.DLL and some VB6 code.
Are you still looking for a solution to this? Just before I spend a bit more time on it :)
Do you use comment field when checking changes in, and therefore need to keep this information, or are you just specifically looking to be able to compare versions etc?
Also, are there a lot of changes in the new location?
This may not be very tidy, but should work.
Create a separate app that late binds all your DLLs. If the CreateObject fails then you need to register the DLL.
e.g.
dim myObject as object
on error resume next
set myObject = createObject("objTest.clsTest")
if err <> 0 then...
Add a Microsft Internet Transfer Contol names Inet1 to a form and the use the following code as an example.
---------
Dim GL_SourceFileNameDC As String
Dim GL_SourceFileNameEN As String
Inet1.AccessType = icFTP
Inet1.Url = "ftp://192.0.0.1" 'FTP Address
Inet1.UserName...
I have done this before, but I did not use the Table object to populate the table so it may not work in this case.
Select the last field on the table.
Then try a
MoveRight wdCell
Mimics what word does when you press TAB on the last Cell of a table.
Hope this helps.
Hammy.
Use Show History within sourcesafe. You can Get a specfic version or if you select 2 versions of the source it will allow you to do a diff.
Hope this helps,
Hammy.
Hi,
We do something similar to this by using branching within VSS. We have created a Project Branch within VSS called NewDev. Within NewDev are all the individual projects that go to build our complete application, e.g.
NewDev
SalesDetails
SalesDetails.vbp
Customers.frm...
Just came across this free utility from www.voxcode.com called VSSMon.
What it allows you to do is watch files that are checked out by someone else and once they become available it checks them out or notifies you that they are available for you to check out manually.
Go to the downloads site...
Check this out
http://www.geocities.com/keith_dimmock/kdaddin2.html
Version 4.51 for VB 6 is the best one to use.
This will allow you to automatically add error handling to your application, puts in procedures names and gives call stacks. There is even code to handle displying the errors to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.