Solved

visual source safe 6 doesn't recognize user from command line

Posted on 2010-08-14
4
610 Views
Last Modified: 2013-11-26
We use VSS 6 on a network share.  I have no problems when using the explorer, but when I try to use the command line I get an error that my user name doesn't exists!?  Here is the line I'm using:
  ss Get $/Projects/ProjectName -R -Yusername,password
I immediately get prompted for username and password ... after password is entered a message is returned saying "username" not found.

Another thing:  I changed my password through the admin program, but when I logged in to the VSS explorer it never prompted me for the new password.
0
Comment
Question by:dhenderson12
  • 2
4 Comments
 
LVL 68

Accepted Solution

by:
Qlemo earned 250 total points
ID: 33440783
Cross-checked that. Only if the user/password pair is not correct, you are prompted for another one. That works fine for me in all combinations.
0
 

Author Comment

by:dhenderson12
ID: 33442706
thanks for the reply.  it's a weird thing.  I changed my password in VSS Admin, but was never prompted for the new password, and trying to run the ss.exe from a command prompt fails my userid and password every time;  however, if I run ss.exe from a batch file, no userid or password is required and it works as expected (I just found that out last night).

I guess I can run it from a batch file, since I need to do this on a remote server, but that brings up another question:  How do I set the force_dir=yes initialization setting from a batch file?  Not being able to set this requires that the "get" command be run from the local folder that is to be the target of the "get".
0
 
LVL 23

Assisted Solution

by:Admin3k
Admin3k earned 250 total points
ID: 33443008
Start>Run>control userpasswords2 , then press enter
Advanced>Password & .NET Passports>Manage Passwords
Now if there are any cached credentials pointing to your VSS server , remove them.
Also , if you have any currently mapped network drives from the server, could you please disconnect them from Windows explorer>tools>disconnect network drives, then re-map them.




0
 

Author Comment

by:dhenderson12
ID: 33446986
I finally got it to work, but I had to use the Interop.SourceSafeTypeLib.dll from within c#, so it's a bust on the command line but a success from c#.  Anyway, if I figure out the issue I will repost to share.  Thanks for the help, all.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now