*Conan The Librarian
1.$ DIRECTORY AVERAGE.* Directory DISK$DOCUMENT:[SOUDER] AVERAGE.EXE;6 AVERAGE.FOR;6 AVERAGE.LIS;4 AVERAGE.OBJ;12 Total of 4 files. In this example, the DIRECTORY command lists all files with the file name AVERAGE and any file type. 2.$ DIRECTORY/SIZE=USED/DATE=CREATED/VERSIONS=1/PROTECTION AVERAGE Directory DISK$DOCUMENT:[SLOUGH] AVERAGE.EXE;6 6 19-DEC-2001 15:43:02.10 (RE,RE,RWED,RE) AVERAGE.FOR;6 2 19-DEC-2001 10:29:53.37 (RE,RE,RWED,RE) AVERAGE.LIS;4 5 19-DEC-2001 16:27:27.19 (RE,RE,RWED,RE) AVERAGE.OBJ;6 2 19-DEC-2001 16:27:44.23 (RE,RE,RWED,RE) Total of 4 files, 15 blocks. In this example, the DIRECTORY command lists the number of blocks used, the creation date, and the file protection code for the highest version number of all files named AVERAGE in the current directory. 3.$ DIRECTORY/FULL DISK$GRIPS_2:[VMS.TV]DEMO.EXE Directory DISK$GRIPS_2:[VMS.TV] DEMO.EXE;1 File ID: (36,11,0) Size: 390/390 Owner: [0,0] Created: 12-NOV-2001 11:45:19.00 Revised: 14-DEC-2001 15:45:19.00 (34) Expires: <None specified> Backup: 28-NOV-2001 04:00:12.22 Effective: <None specified> Recording: <None specified> File organization: Sequential Shelved state: Online Caching attribute: Writethrough File attributes: Allocation: 390, Extend: 0, Global buffer count: 0, Version limit: 0, Backups disabled, Not shelvable Record format: Fixed length 512 byte records Record attributes: None RMS attributes: None Journaling enabled: None File protection: System:RE, Owner:RE, Group:RE, World:RE Access Cntrl List: None Client attributes: None Total of 1 file, 390/390 blocks. The example illustrates the DIRECTORY/FULL command. 4.$ DIRECTORY/VERSIONS=1/COLUMNS=1 AVERAGE.* The DIRECTORY command in this example lists only the highest version of each file named AVERAGE in the current default directory. The format is brief and restricted to one column. Heading and trailing lines are provided. 5.$ DIRECTORY BLOCK%%% The DIRECTORY command in this example locates all versions and types of files in the default device and directory whose names begin with the letters BLOCK and end with any three additional characters. The default output format is brief, four columns, with heading and trailing lines. 6.$ DIRECTORY/EXCLUDE=(AVER.DAT;*,AVER.EXE;*) [*...]AVER The DIRECTORY command in this example lists and totals all versions and types of files named AVER in all directories and subdirectories on the default disk, except any files named AVER.DAT and AVER.EXE. 7.$ DIRECTORY/SIZE=ALL FRESNO::DISK1:[TAMBA]*.COM The DIRECTORY command in this example lists all versions of all files with the file type COM in the directory TAMBA on node FRESNO and device DISK1. The listing includes the file size both in blocks used and in blocks allocated for each file. 8.$ DIRECTORY- _$ /MODIFIED/SINCE=14-DEC-2001:01:30/SIZE=ALL/OWNER- _$ /PROTECTION/OUTPUT=UPDATE/PRINTER [A*] The DIRECTORY command in this example locates all files that have been modified since 1:30 a.m. on December 14, 2001, and that reside on the default disk in all directories whose names begin with the letter A. It formats the output to include all versions, the size used and size allocated, the date last modified, the owner, and the protection codes. The output is directed to a file named UPDATE.LIS, which is queued automatically to the default printer queue and then is deleted. 9.$ DIRECTORY/SHELVED_STATE Directory MYDISK:[THOMPSON] MYFILE.TXT;2 Online NOT_SHELVED.TXT;1 Online SHELVED.TXT Shelved Total of 3 files. The DIRECTORY command in this example lists all the files in a directory and shows whether a file is shelved, preshelved, online, or remote.