qaqaw

Hi,

How do I run ss.exe from any folder

### Re: Visual Studio Source Control and SourceSafe How do I run ss.exe from any folder?

Richard Berg MSFT

set path=%path%;c:\path\to\vss
set ssdir=c:\path\to\database
ss cp $/path/to/project ss [command] ### Re: Visual Studio Source Control and SourceSafe How do I run ss.exe from any folder? qaqaw Command prompt: C:\>set path=%path%;C:\Program Files\Microsoft Visual SourceSafe C:\>set ssdir=\\calsql4\vss\softdev C:\>ss cp$/dan_test/dev
'ss' is not recognized as an internal or external command,
operable program or batch file.

C:\>

So after step 2, I'm suppose to be able to use "ss" in any folder

\\calsql4\vss\softdev\ is where our srcsafe.ini is.

\$/dan_test/dev is an actual project directory I have in the repository

I'm not sure what I'm doing wrong.

### Re: Visual Studio Source Control and SourceSafe How do I run ss.exe from any folder?

Richard Berg MSFT

In order to run ss.exe from any folder it needs to be in your PATH. This is the same for any command line program. The path setting you used in step 1 apparently isn't working.

Try specifying the complete path to ss.exe. Use tab completion to make sure you've got the right path. Here's what it looks like on my machine.

[RICBERG470] C>"Program Files (x86)\Microsoft Visual SourceSafe\ss.exe"
Microsoft (R) Visual SourceSafe Version 8.0

Once you've found the correct path, you should probably add it to your system environment settings so you don't have to specify it every time. Here's instructions: http://www.computerhope.com/issues/ch000549.htm

### Re: Visual Studio Source Control and SourceSafe How do I run ss.exe from any folder?

qaqaw

Command Prompt:

C:\>set path=%path%; "C:\Program Files\Microsoft Visual SourceSafe\ss.exe"

C:\>set ssdir = \\calsql4\vss\SoftDev

C:\>ss
'ss' is not recognized as an internal or external command,
operable program or batch file.

C:\>ss diff
'ss' is not recognized as an internal or external command,
operable program or batch file.

C:\>set path=%path%;"C:\Program Files\Microsoft Visual SourceSafe\ss.exe"

C:\>set ssdir = "\\calsql4\vss\SoftDev"

C:\>ss diff
'ss' is not recognized as an internal or external command,
operable program or batch file.

C:\>set path=%path%;C:\Program Files\Microsoft Visual SourceSafe\ss.exe

C:\>ss
'ss' is not recognized as an internal or external command,
operable program or batch file.

C:\>set ssdir = \\calsql4\vss\softdev

C:\>ss
'ss' is not recognized as an internal or external command,
operable program or batch file.

These are attempts with and without parenthesis around the path, and I've also included the full path to the executable now.

I've checked that the file path is correct:

C:\>"C:\Program Files\Microsoft Visual SourceSafe\ss.exe"
Microsoft (R) Visual SourceSafe Version 8.0

C:\>

### Re: Visual Studio Source Control and SourceSafe How do I run ss.exe from any folder?

Richard Berg MSFT

I see several errors:

- the PATH variable is comma-delimited. You don't need quotes.
- in some cases you're adding ss.exe instead of the containing folder. that won't work
- in your first example there's an extra space between the ; and the start of the path

There is nothing SourceSafe-specific about the problem you're seeing. CMD simply cannot find ss.exe. Any tutorial on using the CMD command line will help you.

### Re: Visual Studio Source Control and SourceSafe How do I run ss.exe from any folder?

qaqaw

typing this worked for me:

set path=C:\program files\microsoft visual sourcesafe

thx