home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / utility / dirx.zip / DIRX.TXT < prev    next >
Text File  |  1992-09-28  |  3KB  |  42 lines

  1.  
  2. Want to see a list of DIR files only? easy! (dir C:\*.)
  3. Now how about everything but the DIR files?  DOS doesn't know how to do that!
  4. But DIRX does! (dirx {C:\ -D)
  5.  
  6. Note that dirx gives the same display as DIR, but includes another column -
  7. these are the file attributes.
  8. A(rchive) R(ead-only) H(idden) S(ystem) D(irectory)
  9. How about all non DIR files, except the system files? (dirx {C:\ -d -s)
  10. Now let's take away command.com, autoexec.bat, and config.sys from the list.
  11. (dirx -d -s -command.com -autoexec.bat -config.sys {C:\)
  12. How about all of the system files that begin with "IO" (dirx {C:\ +s io*.*)
  13. How about all of the executable, command, and batch files?
  14. (dirx *.exe {C:\ *.com *.bat)  Note that the order of parameters doesn't matter
  15.  
  16. I won't demonstrate this one, but DELX uses exactly the same conventions as the
  17. above examples to delete selected files.  This means that after you use DIRX
  18. to see what files are in the list you specified, you could type "DEL" and then
  19. press F3 to copy the rest of the previous command line onto the cursor line.
  20. That process will delete ALL of the files and/or directories specified.  Note
  21. that Hidden (+H) and Read-only (+R) files and Directories (+D) will be deleted
  22. automatically if the attributes are specified as included (+H +R +D).  If you
  23. don't specify the attribute, you will be prompted before these types of files
  24. are deleted.  When directories are deleted, all sub-directories contained in
  25. them are deleted and removed, then the directory itself is removed.
  26.  
  27. COPX also uses the same parameters, but also allows target parameters (up to 30)
  28. Each one must be preceded by a "}".  Multiple sources may be indicated (for DIRX
  29. DELX and COPX) by preceding them with a "{".  COPX allows you to copy a list of
  30. files to one or more disks on each target.  For example, if you specify }A: in
  31. the parameter list and drive A: does not have enough free diskspace to hold all
  32. of the files, COPX will pause and ask you if you want to continue on another
  33. disk, and on which drive.
  34.  
  35. The /p and /w parameters affect DIRX the same way as they do DIR.
  36. Using /p with DELX causes it to pause before deleting each file.  When the file
  37. name is displayed on the screen the user can either press any key to delete it
  38. or CTRL-C to stop the program.
  39. The /n switch applies to COPX only and refers to "No prompting".  This means
  40. that the user will not be asked before a new directory is created, allowing you
  41. to use it in a batch file.
  42.