home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
utility
/
dirx.zip
/
DIRX.TXT
< prev
next >
Wrap
Text File
|
1992-09-28
|
3KB
|
42 lines
Want to see a list of DIR files only? easy! (dir C:\*.)
Now how about everything but the DIR files? DOS doesn't know how to do that!
But DIRX does! (dirx {C:\ -D)
Note that dirx gives the same display as DIR, but includes another column -
these are the file attributes.
A(rchive) R(ead-only) H(idden) S(ystem) D(irectory)
How about all non DIR files, except the system files? (dirx {C:\ -d -s)
Now let's take away command.com, autoexec.bat, and config.sys from the list.
(dirx -d -s -command.com -autoexec.bat -config.sys {C:\)
How about all of the system files that begin with "IO" (dirx {C:\ +s io*.*)
How about all of the executable, command, and batch files?
(dirx *.exe {C:\ *.com *.bat) Note that the order of parameters doesn't matter
I won't demonstrate this one, but DELX uses exactly the same conventions as the
above examples to delete selected files. This means that after you use DIRX
to see what files are in the list you specified, you could type "DEL" and then
press F3 to copy the rest of the previous command line onto the cursor line.
That process will delete ALL of the files and/or directories specified. Note
that Hidden (+H) and Read-only (+R) files and Directories (+D) will be deleted
automatically if the attributes are specified as included (+H +R +D). If you
don't specify the attribute, you will be prompted before these types of files
are deleted. When directories are deleted, all sub-directories contained in
them are deleted and removed, then the directory itself is removed.
COPX also uses the same parameters, but also allows target parameters (up to 30)
Each one must be preceded by a "}". Multiple sources may be indicated (for DIRX
DELX and COPX) by preceding them with a "{". COPX allows you to copy a list of
files to one or more disks on each target. For example, if you specify }A: in
the parameter list and drive A: does not have enough free diskspace to hold all
of the files, COPX will pause and ask you if you want to continue on another
disk, and on which drive.
The /p and /w parameters affect DIRX the same way as they do DIR.
Using /p with DELX causes it to pause before deleting each file. When the file
name is displayed on the screen the user can either press any key to delete it
or CTRL-C to stop the program.
The /n switch applies to COPX only and refers to "No prompting". This means
that the user will not be asked before a new directory is created, allowing you
to use it in a batch file.