SFA16.DOC DOCUMENTATION FOR SFA16.ASM 02 DEC 83 SFA is a program which can be used to set the file attributes of CP/M files. The attributes set by the program and the bytes affected are: 1) R/O - first character of file type 2) SYS - second character of file type 3) NFD - first character of file name R/O and SYS are the standard CP/M attributes. The one I am calling NFD (for "Not For Distribution") is the attribute which determines whether or not XMODEM will download the file. PROGRAM FEATURES ---------------- 1. All 3 attributes may be set (or reset) in one pass of the program rather than having to run STAT twice (once each for R/O and SYS) and another program for NFD. 2. Ambiguous file names are accepted by the program thus allowing for multiple files to be set in one pass. 3. The program may be run in automatic mode by entering the requested attributes in the command line, or in prompt mode by omitting the attributes, or in a combination of both. 4. Running of the program may be password protected by setting the conditional equate "PASSW" in the source to "YES" and enter- ing one or more passwords in the password storage area. PROGRAM OPERATION ----------------- The following operating instructions are given when "SFA" is entered: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - To set file attributes (distribution, R/O, DIR-SYS) Use: SFA afn [A][B][C] Where A, B and C represent the requested attribute(s) A: F - FOR distribution or N - NOT for distribution B: W - read/Write or O - read Only C: D - DIRectory file or S - SYStem file' Zero thru three attributes may be specified. X in any position will cause that attribute to be prompted for and '-' skips that attribute. I.E., SFA *.* fx- sets each file FOR distribution, prompts for RO/RW and skips SYS/DIR. Pressing any key aborts SFA. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - In addition, the following instructions are given each time the program executes: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - At prompt, press spacebar to advance to next file, '-' to advance to next attribute, or 'Q' to Quit. Press any key to abort in automatic mode. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This program was written by: Robert Wilcox 920 N. Washington St. Owosso, MI 48867 (517) 725-8531