Quick File System Reports:
Using the options supported by the DIR extended Local Console Command,
it is possible to collect and output highly selective information about
the File System contents.
The following examples demonstrate how the options supported by DIR
can be combined to produce a slective report:
Note: DIR supports output redirection (>vol:path\filename.ext) to
send the output displayed on the Server screen to a file.
List all entries in the SYS:SYSTEM directory:
DIR SYS:SYSTEM
List only those entries matching a specific pattern (*.NLM):
DIR SYS:SYSTEM\*.NLM
Change the pattern to a generic wild card (*.*), change the starting
point to the root of the SYS Volume (SYS:), and recurse (/S - search)
all directories in the directory tree beneath the starting point:
DIR SYS:*.* /S
Note: Searches the entire SYS: Volume.
Change the output to only provide bare information
(/B - vol:path\filename.ext only, no entry information)
for entries in the SYS Volume:
DIR SYS:*.* /B /S
Limit the bare output to entries in the SYS Volume
with the Hidden attribute set (/A=H):
DIR SYS:*.* /A=H /B /S
Note: Multiple /A option can be combined (i.e., /A=H /A=RO ...).
Limit the bare output to entries in the SYS Volume
without the Read Only attribute set (/A=-RO):
DIR SYS:*.* /A=-RO /B /S
Note: Multiple /A option can be combined (i.e., /A=-H /A=-RO ...).
Limit the bare output to entries in the SYS Volume
which are Files (/-D = exclude Directories):
DIR SYS:*.* /B /-D /S
Limit the bare output to entries in the SYS Volume
which are Directories (/-F = exclude Files):
DIR SYS:*.* /B /-F /S
Limit the bare output to entries in the SYS Volume
Owned by Admin.ctx (/O=Admin.ctx):
DIR SYS:*.* /B /O=Admin.ctx /S
Note: /O= cannot be used with /-O.
Limit the bare output to entries in the SYS Volume
without a valid Owner ID assigned (/-O):
DIR SYS:*.* /B /-O /S
Note: /-O cannot be used with /O=.
Limit the bare output to entries in the SYS Volume
with Admin.ctx assigned as a Trustee (/R=Admin.ctx):
DIR SYS:*.* /B /R=Admin.ctx /S
Note: /R= cannot be used with /-R.
Limit the bare output to entries in the SYS Volume
with an invalid Trustee assigned (/-R):
DIR SYS:*.* /B /-R /S
Note: /-R cannot be used with /R=.
Limit the bare output to entries in the SYS Volume
with a Size of 1 KB (/L=1024):
DIR SYS:*.* /B /L=1024 /S
Limit the bare output to entries in the SYS Volume
with a Size of 1 MB or less (/L=-1048576):
DIR SYS:*.* /B /L=-1048576 /S
Limit the bare output to entries in the SYS Volume
with a Size of 2 MB or more (/L=+2097152):
DIR SYS:*.* /B /L=+2097152 /S
Limit the bare output to entries in the SYS Volume
with a Size between 1 MB and 2 MB (/L=1048576-2097152):
DIR SYS:*.* /B /L=1048576-2097152 /S
Limit the bare output to entries in the SYS Volume
that were Created on 26 July 2004 (/T=C2004/07/26):
DIR SYS:*.* /B /S /T=C2004/07/26
Note: Last Accessed Date /T=A...
|
Last Modified Date /T=M...
Limit the bare output to entries in the SYS Volume
that were Created on or before 26 July 2004 (/T=C-2004/07/26):
DIR SYS:*.* /B /S /T=C-2004/07/26
Note: Last Accessed Date /T=A-...
|
Last Modified Date /T=M-...
Limit the bare output to entries in the SYS Volume
that were Created on or after 26 July 2004 (/T=C+2004/07/26):
DIR SYS:*.* /B /S /T=C+2004/07/26
Note: Last Accessed Date /T=A+...
|
Last Modified Date /T=M+...
Limit the bare output to entries in the SYS Volume
that were Created between 21 - 26 July 2004 (/T=C2004/07/21-2004/07/26):
DIR SYS:*.* /B /S /T=C2004/07/21-2004/07/26
Note: Last Accessed Date /T=A...
|
Last Modified Date /T=M...
Combined Custom Report Examples:
Note: While multiple /A options can be specified, the /L /O /R /T
options are limited to using one of each at a time (i.e., the different
options can be combined but only one form of each option can be used).
Produce a normal listing of
only Files
with a .MPG extension
in or below the SYS:HOME base directory
that are 2 MB or larger:
DIR SYS:HOME\*.MPG /-D /L=+2097152 /S
Produce a normal listing of
all new File System entries
in the SYS Volume
Created on 27 July 2004:
DIR SYS:*.* /T=C2004/07/27 /S
Produce a bare output listing of
all *.NLM Files
in the SYS:SYSTEM directory
without a valid Owner assigment:
DIR SYS:SYSTEM\*.NLM /B /-D /-O
Note: Unless /S is specified, the listing contains only
the file names, not the vol:path.
Produce a bare output listing of
all entries
in the SYS Volume
Owned by Admin.ctx
Created between 01 - 31 July 2004
of a Size of 1 MB or larger:
DIR SYS:*.* /B /L=+1048576 /O=Admin.ctx /S /T=C2004/07/01-2004/07/31
|