home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
srcmac.zip
/
CHECKIN.REX
next >
Wrap
OS/2 REXX Batch file
|
1994-05-11
|
1KB
|
22 lines
/* CHECKIN.CMD - Checks the current SourceLink file into SourceSafe */
'S_GET_BUFF_FILENAME' 0 OrigName /* Get current file name */
/* 'S_CLOSE_SL_FILE' 0 */ /* Close the current file */
'S_SAVE_CURR_FILE' /* Save current file */
'S_CHG_EDITMODE' /* Change edit mode */
/* Change directory to the directory of the current SourceLink file */
LastSlashPos = LASTPOS('\',OrigName) /* Find the position of last slash */
PathName = LEFT(OrigName,LastSlashPos-1) /* Trim off filename at the end of the string */
's_cd "'PathName'"' /* Change directory to current file directory */
NewName = RIGHT(OrigName,LENGTH(OrigName)-2) /* Strip off the drive: from the name */
/* Call SourceSafe to update file */
'Start "Update SourceSafe" /win /max l:\macros\updateit' NewName '> con: 2> con: < con:'