Solved

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

Posted on 2010-08-14
4
615 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 70

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:Mohamed Osama
Mohamed Osama 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

707 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