Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Invalid DOS path

Status
Not open for further replies.

DonQuichote

Programmer
Nov 9, 2001
980
0
0
When I install Sourcesafe 6 on a machine at our office, it cannot find the central database. To be more precise: you can browse to the file, select it, and see that is is converted to a UNC path (so S:\<some dirs>\srcsafe.ini is converted to \\<servername>\<some dirs>\srcsafe.ini). Next, I receive an error message saying that this UNC file cannot be found. When I hack the registry and manually set the default database path to the non-UNC path, sourcesafe starts up with a message 'invalid DOS path'. Is there a way to overcome this bug?

Best regards,
Willem Bogaerts
 
I've encountered the same problem two different ways, so the way you start up SourceSafe needs to be known. However, here's the &quot;fixes&quot; depending on your setup:

1) If you start SourceSafe from the command line, you need to create an environment variable (system type, not user) called ssdir and give it the UNC path as the value.

2) If you start SourceSafe via the GUI, you need to specify the UNC path in the srcsafe.ini file where you installed your client. There's a header in that file telling you that you should have a single #include \\<servername>\<somedirs>\srcsafe.ini.

I'm guessing your doing method 2. Note that if you access more than 1 SourceSafe database, there is still the tendency to get that message. My fix for that is to change the #include to the path of the other database's srcsafe.ini file and restart the GUI. Why this #include is there, I have no idea since it seems to limit you access to one database at a time, though in practice I've found that to not be true. It just needs to be set to one in order for things to work.

Good luck.
 
I start sourcesafe via the GUI. However, I want sourcesafe to connect with the shared database by default. So I have set the default database to the database on the server. And that is the thing that does not work. I can select the shared database from a file-open dialog (via drive-letters, even when I enter the complete filename 'S:\...\srcsafe.ini' in the enter filename textbox!), but when I click OK, I get the message that that the path (which is converted to UNC by sourcesafe itself) is an invalid DOS path. On my system, hacking the registry helped:

[HKEY_LOCAL_MACHINE\Software\Microsoft\SourceSafe\Databases]
&quot;srcsafe.ini&quot;=&quot;s:\\shared\\oase\\VSSafe&quot;

It used to show the UNC path and I changed it back to the drive-letter path. However, on an other machine, this registry key is also messed up when sourcesafe starts. On that machine, sourcesafe starts, complains that \\NEELIX\SHARED\OASE\VSSsafe\srcsafe.ini is an invalid DOS path en sets the registry key to that same path it just claimed to be invalid. This effectively means that the shared database cannot be selected at all.

Best Regards,
Willem Bogaerts
 
I had the same problem with a new installation of VSS 6.0c on Windows 0. The problem was corrected by hacking the registry in BOTH the &quot;current user&quot; and the &quot;local machine&quot; root keys. I had to change the UNC paths back to Drive-letter paths.

[pc2]
 
I added the #include statement that looks like:

#include \\<server name>\other dirs...\srcsafe.ini

And this did not correct my problem. I receive the same error invalid dos path.
 

I have modified the registry changing the UNC paths to drive letters with no results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top