home *** CD-ROM | disk | FTP | other *** search
- !!Script
-
- var gOutput = getOutput();
- var gVssMapFile = getMapFile( "vss.map" );
-
- function DoCommand()
- {
- var project = getCurrentProject();
-
- if ( project )
- {
- var vssPath = "";
-
- // Check for location of SS.exe
- var vssExe = gVssMapFile.lookup( "vssPath", "" );
-
- if ( vssExe.length == 0 )
- {
- vssExe = chooseFile( "Choose the location of ss.exe", "SourceSafe Executable", "ss.exe" );
-
- if ( vssExe )
- {
- gVssMapFile.add( "vssPath", vssExe.path );
- project.setProperty( "vssPath", vssExe.path );
- setGlobal( "vssPath", vssExe.path );
- }
- }
- else
- {
- gOutput.writeLine( "vssPath is already defined. Path:"+vssExe );
- }
- }
- else
- {
- alert( "A project must be open before you can use this command." );
- }
- }
-
- !!/Script
-
-