FIXDIR FUNCTION: Updates a directory file (any file created with DIR/D/H/V filspec=). This program will NOT change any of the files on the user's system UNTIL Phase 7 when the user can replace the 'old' directory with the updated one. The updated directory will have the date and time of the update appended to the end of the first three lines. This will not interfere with the operation of VERIFY. HINTS/RESTRICTIONS: Use FIXDIR to keep your directory current without having to manually (a) find out which files have changed, (b) get the current version and hash, and (c) VUR the 'old' directory and replace the information with the chance of typos or transpositions. FIXDIR requires VERIFY.LIT and AMOS/L 1.3 or later. FORMAT: . _RUN FIXDIR DEFAULTS: 1. The directory file name defaults to AMOS 2. The directory file extention defaults to .DIR 3. All Yes/No questions default to No OPTIONS: There are no options other than the obvious. OPERATION: Log into the account that has a directory file that you wish to update: . _LOG DSK0:[1,2] Type RUN FIXDIR and press the RETURN key: . _RUN FIXDIR FIXDIR will now display a screen of information about FIXDIR. Press the RETURN key to continue. FIXDIR then asks the following questions: 1. What is the name of the directory to be updated _______________________________________________ (default=AMOS.DIR) __________________ where filnam is the name of any file created with "DIR/D/H/V filnam.ext=". The filnam defaults to "AMOS" and the .ext defaults to .DIR FIXDIR will then look for the named file and if it is not in the account will say: Fatal error - I can't find (filnam.ext) _______________________________________ and then abort. (FIXDIR - Rev.H (11/07/89) FIXDIR (Cont'd) Page 2 2. If any files in this account have the same name(s) as those used by FIXDIR then FIXDIR will say: WARNING! The following files WILL be overwritten: _________________________________________________ (names of files affected) _________________________ and ask: Do you wish to continue? (DEF=N) ? __________________________________ Type a "Y" and then a RETURN to continue, any other character (or none) followed by a RETURN will abort FIXDIR FIXDIR then displays: Phase 1 of FIXDIR - Create Necessary files __________________________________________ and continues to write some basic programs and command files (all named UTFDPx) and then makes a copy of the directory file named UTFDP1.DIR. Phase 2 of FIXDIR - Verify the Directory to a file ___________________________________________________ Phase 3 of FIXDIR - Eliminate the 'VERIFIED' and 'not _______________________________________________________ found' files ____________ Phase 4 of FIXDIR - Create a command file to get current ___________________________________________________________ file info _________ Phase 5 of FIXDIR - Get the current file info _________________________________________________ Phase 6 of FIXDIR - Updates the directory copy ___________________________________________________ for each file that has a version and/or hash that differs from that shown by the directory file FIXDIR displays: old directory shows: ____________________ (full file spec) (version) (hash) ___________________________________________________________________ file on system is: __________________ (full file spec) (version) (hash) ___________________________________________________________________ and then asks: 1. Do you want to substitute new for old? (Y/x) (DEF=N) ____________________________________________________ Type a "Y" and a RETURN to update the information. Any other character (or none) and a return will leave the directory as it was for this file. after all of the changed files have been processed FIXDIR will display: xxx Files DIDN'T match the directory ____________________________________ xxx Directory entries were NOT updated ______________________________________ xxx Directory entries WERE updated __________________________________ Phase 7 of FIXDIR - Cleanup ________________________________ FIXDIR will then ask: 2. Do you want the updated directory copied over the old _____________________________________________________ one? ____ Type a "Y" and a RETURN to replace the old directory with the updated one. Any other character (or none) and a return will leave the directory as it was. If the directory is copied over then FIXDIR.DIR is erased. (FIXDIR - Rev.H (11/07/89) FIXDIR (Cont'd) Page 3 3. Do you want work files erased? ______________________________ Type a "Y" and a RETURN to erase the files created by FIXDIR except FIXDIR.DIR which was handled by the previous question. Any other character (or none) and a return will leave the 'work' files on the system. COMMAND SUMMARY: ERRORS: I can't work without DSK0:VERIFY.LIT[1,4] - Sorry _________________________________________________ FIXDIR did a LOOKUP and didn't find VERIFY in SYS:. Since that is the heart of the program FIXDIR aborted. I can't find (directory name) _____________________________ FIXDIR did a LOOKUP for the (directory name) file in the account that you are logged into and couldn't find it. Check the error message to make sure that the directory name displayed is the same as the directory file. CHARACTERISTICS: FIXDIR BAS 49 507-743-424-251 FIXDIR RUN 36 576-075-752-255 89.11H(7) NOTE: This program is NOT part of the original AMOS/L operating system distributed by Alpha Microsystems. The author of this program is: David W. Barrow III Stonewall Computer Center 1894 Elm Drive, Town of Cedarburg West Bend, WI 53095 Telephone (414) 375-AMOS BAS:FIXDIR rev. 11/13/89 (FIXDIR - Rev.H (11/07/89) .