DBDIRC FUNCTION: Checks a directory file (any file created with DIR/D/H/V filspec=) against the files on the system. This program will NOT change any of the files on the user's system. HINTS/RESTRICTIONS: Use DBDIRC to find out what files on your system differ from a directory. DBDIRC requires VERIFY.LIT and AMOS/L 1.3 or later. FORMAT: . _RUN DBDIRC DEFAULTS: 1. The directory file name defaults to AMOS 2. The directory file extension defaults to .DIR 3. All Yes/No questions default to No OPTIONS: There are no options other than the obvious. OPERATION: Log into an account that has a directory file that you wish to check: . _LOG DSK0:[1,2]RETURN Type RUN DBDIRC and press the RETURN key: . _RUN DBDIRCRETURN DBDIRC will now display a screen of information about DBDIRC. Press the RETURN key to continue. . _RETURN DBDIRC then asks the following questions: 1. What is the name of the directory to be checked _______________________________________________ (default=AMOS.DIR) __________________ Type dirnam and press the RETURN key: (dirnam)RETURN where dirnam 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 DBDIRC will then look for the named file and if it is not in the account will say: Fatal error - I can't find (dirnam.ext) _______________________________________ and then abort. DBDIRC - rev. C (03/28/91) DBDIRC (Cont'd) Page 2 2. If any files in this account have the same name(s) as those used by DBDIRC then DBDIRC 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 DBDIRC YRETURN DBDIRC then displays: Phase 1 of DBDIRC - Create Necessary files __________________________________________ and continues to write some basic programs and command files (all named UTDCPx) and then makes a copy of the directory file named UTDCP1.DIR. Phase 2 of DBDIRC - Verify the Directory to a file __________________________________________________ See the VERIFY.LIT information. Phase 3 of DBDIRC - Eliminate the 'VERIFIED' files __________________________________________________ Deletes all of the VERIFIED files from the VERIFY.LST file. Phase 4 of DBDIRC - Create a command file to get current ________________________________________________________ file info _________ Phase 5 of DBDIRC - Get the current file info _____________________________________________ Phase 6 of DBDIRC - Lists the anomalies to a file _________________________________________________ Phase 7 of DBDIRC - Cleanup ___________________________ and then asks: Do you want work files erased? (Y/N) (def=N) _____________________________________________ Type a "Y" and a RETURN to erase the files created by DBDIRC except dirnam.CHK. Any other character (or none) and a return will leave the 'work' files on the system. the system then prints: I hope you found DBDIRC useful - Dave Barrow ____________________________________________ The comparison file is dirnam.CHK _________________________________ dirnam.CHK has the name of the directory that was checked and the date and time that the check was done. Then, for each file that doesn't match the directory the following is printed: Anomaly #n dirnam directory shows: _______________________ (full file spec) (version) (hash) ___________________________________________________ file on system is: __________________ (full file spec) (version) (hash) ___________________________________________________ COMMAND SUMMARY: DBDIRC - rev. C (03/28/91) DBDIRC (Cont'd) Page 3 ERRORS: I can't work without DSK0:VERIFY.LIT[1,4] - Sorry _________________________________________________ DBDIRC did a LOOKUP and didn't find VERIFY in SYS:. Since that is the heart of the program DBDIRC aborted. I can't find (directory name) _____________________________ DBDIRC 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. VERIFY didn't work. Check your directory. __________________________________________ The usual reason is that one of the logical devices listed in the directory doesn't exist on your system. CHARACTERISTICS: DSK0:DBDIRC.BAS[7,6] 556-301-301-746 DSK0:DBDIRC.RUN[7,6] 91.3C(31) 216-036-347-740 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:DBDIRC DBDIRC - rev. C (03/28/91) .