Program: SREN - Screen Oriented File Rename Author: Rob Friefeld Version: 1.0 Date: 20 Aug 1990 SREN is a full screen file renaming utility for ZCPR3 and Z3PLUS systems. It uses NZTCAPD and its VLIB for some simple line drawing and cursor on/off. SYNTAX: SREN [dir:] The mask is automatically wild-carded, and all matching directory entries are loaded into SREN's internal table. Examples: SREN All files in current directory. SREN SYS:.c Load SYS:*.c?? --- USAGE --- FILENAMES are edited via a customized line editor. A renames the file to its edited name. When the cursor moves to a new line, any pending changes must be dealt with first. This is automatic unless you configure SREN to ask about it first. ILLEGAL FILENAME CHARACTERS, as defined by Digital Research, are not accepted. Many of these characters are used anyway, e.g. "[" "]" or "/", so the list of excluded characters may be patched to your preference. The FILE ATTRIBUTES are edited in a separate field. switches between the filename editing field and the attribute field. To change attributes individually, use cursor control or then press S(et), R(eset), or (T)oggle. For convenience, an ATTRIBUTE SETTING MACRO may be defined. Executing the macro then sets the attributes of the current file -- from either editing field. The macro has three modes: Set - set specified attributes, reset all others. Mask - set specified attributes, leave others alone. Reset - reset specified attributes, leave others alone. SREN displays a command summary on the right side of the screen. ESC cycles the help screen through several sub-screens. Here is a complete list of the available commands with default settings: --- SREN FUNCTIONS --- ^K Lead-in Key Consider also ^Q, ESC CR Rename Execute changes to file name, advance to next line ^KQ Exit ^KL Relog Restart program on new DIR:MASK TAB Switch Field Switch between File Name editor and Attribute editor ^U Undo Reloads original file name or attributes into editor ^Y Delete File ESC Help Screen Cycles through command summary subscreens (4) ^S Cursor Left ^D Cursor Right ^E Line Up Rename file as cursor leaves line ^X Line Down ^R Page Up Top of this screen, then top of previous screen ^C Page Down Bottom of this screen, then bottom of next screen ^KT Top Page First file ^KB Bottom Page Last file ^J Find (Jump) Search forward with wrap, name wild-carded ^L Repeat Find ^KM Define Macro Attribute setting "macro" ^KA Execute Macro Set attributes as per macro on current file BSP Backspace Installable destructive or non-destructive FILENAME EDITING FIELD ONLY ^A Token Left ^F Token Right ^G Delete Char ^T Delete Token Rt ^V Toggle Insert DEL Delete Left . Name/Type Move cursor to alternate filename.typ field ATTRIBUTE EDITING FIELD ONLY S,R Set, Reset Attribute T Toggle Attribute SP Move to next attribute On systems that support the PUBLIC ATTRIBUTE (F2), problems arise when giving a file the same name as a public file on the same drive. The situation amounts to having two files of the same name in the same directory. SREN reports that the file exists and cancels the rename. If you are serious, reset the public attribute before proceding. SREN does not deal with the case of renaming an existing file which already has the same name as a public file. My experiments with ZSDOS show that the file will be renamed as expected, but as a side effect, the public file becomes non-public with attribute F7 set. Lesson: Never create a public file by just setting attributes. Use FILEATTR! --- INSTALLATION --- SRENINST.COM installs the control key bindings and default flags. Nota Bene -- File attributes F5-F7 are reserved for use by the DOS and should never be changed. SREN ignores any changes you make to those attributes. You may set a patch byte to remove the LOCKOUT at your peril. Have fun! End SREN.DOC