Source Safe allows you to run file management commands from a DOS prompt. The program SS.EXE is the program that performs the work. All of the information needed to execute file management commands is passed to the program via the command line.
So where is the problem?
UltraEdit variables refer to the file currently active in the program window. So, if you are looking at C:\programs\source\coolproject\main.cpp. The variable %f will contain "C:\programs\source\coolproject\main.cpp".
To execute SS.EXE from UltraEdit-32 to checkout a file, you would need the following command line:
SS.EXE checkout "%f" -GWR
SS.EXE checkout "C:\programs\source\coolproject\main.cpp" -GWR
However, Source Safe is looking for input relative to the Source Safe database. And the above command will fail.
To execute SS.EXE correctly from DOS, you would type:
SS.EXE checkout "$/coolproject/main.cpp" -GWR
Root | C:\Develop\Source\MyCode\ |
Physical Location | C:\Develop\Source\MyCode\Project1\Files\Headers\main.h |
SourceSafe Location | $/Project1/Files/Headers/main.h |
Command Line | C:\Program Files\Microsoft Visual Studio\Common\VSS\Win32\ssue.exe <SSROOT> checkout "%f" -GWR |
Working Directory | %P |
Menu Item Name | SourceSafe Check Out |
Check if Windows Program | Unchecked |
Save all files first | Unchecked (unless you prefer otherwise) |
Command Output (DOS commands) | Output to Listbox. Capture Output box checked. |
Command Line | C:\Program Files\Microsoft Visual Studio\Common\VSS\Win32\ssue.exe <SSROOT> checkin "%f" -GWR |
Working Directory | %P |
Menu Item Name | SourceSafe Check In |
Check if Windows Program | Unchecked |
Save all files first | Unchecked (unless you prefer otherwise) |
Command Output (DOS commands) | Output to Listbox. Capture Output box checked. |
Command Line | C:\Program Files\Microsoft Visual Studio\Common\VSS\Win32\ssue.exe <SSROOT> undocheckout "%f" -GWR |
Working Directory | %P |
Menu Item Name | SourceSafe Undo Check Out |
Check if Windows Program | Unchecked |
Save all files first | Unchecked (unless you prefer otherwise) |
Command Output (DOS commands) | Output to Listbox. Capture Output box checked. |
* NOTE: <SSROOT> takes one of two forms:
Source Safe launch utility for UltraEdit 32 (ver. 2.01) written by Tom Welch (c) 2001-2003 Ten and Six Software e-mail tom.welch@tenandsix.com Usage: ssue.exe root command filename [-options] [-DB:name] [-PP:prefix] [-LOG] root: drive path of the working folder for $/ in SS example: "c:\src\work" or: $where is an environment variable containing the drive path example: "$SSROOT" command: any valid SS.EXE command example: checkout -options: any valid SS.EXE command example: "-GWR" -DB:name name is the name of the database you wish to use example: "-DB:Common" -PP:prefix prefix folder for source safe which will be inserted between "$/" and the rest of the path (helpful if project is stored in multiple SS folders) example: "-PP:release" -LOG creates SSUELOG.XML which can be e-mailed to the address above for technical support Examples: ssue.exe C:\DEV\SRC checkout C:\DEV\SRC\PROJ1\HELLO.CPP -GWR ssue.exe $SSROOT checkin C:\LOCAL\SOURCE\MYPROJ\MAIN.MAK -GWR ssue.exe $SSROOT undocheckout $SSROOT\THEPROJ\HELP.H -GWR ssue.exe $SSROOT checkout $SSROOT\THEPROJ\HELP.H -GWR -DB:Remote Not enough command line parameters.