home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PASCAL / FLIST.ZIP / FLIST.DOC next >
Encoding:
Text File  |  1988-06-22  |  4.3 KB  |  124 lines

  1.  
  2.     FList              version 1.0         6-17-88
  3.  
  4.     Syntax:
  5.                 FList [drive] [> list redirection]
  6.     Examples:
  7.                 flist
  8.                 flist d:
  9.                 flist c: > a:\files.c
  10.                 flist > a:\files.c
  11.                 flist ?
  12.  
  13.     Sample Output:
  14.  
  15. \IBMBIO.COM
  16. \IBMDOS.COM
  17. \VOLUMEC
  18. \BAT
  19. \BAT\EMAIL.BAT
  20. \BAT\FORMAT.BAT
  21. ...   etc.   ...
  22. \CONFIG.SYS
  23. \AUTOEXEC.BAT
  24. \COMMAND.COM
  25. \QD22.LOG
  26. ...   etc.   ...
  27.  
  28. -----------------------------------------------------------------
  29.  
  30. FList lists all files, volume labels, directories, and files on a
  31. disk.   It always starts at the root directory, and traverses all
  32. subdirectories on a disk.  If a disk drive is explicitly
  33. selected, the drive letter will be displayed in the output file
  34. list.  If the drive to be selected is allowed to default to the
  35. current disk drive, no drive letter will appear in the file name.
  36. This can sometimes be useful if you're comparing lists of files
  37. from different drives, and want to use a database or other tool
  38. to match them.
  39.  
  40. Below is a message describing one use for FList with Paradox. It
  41. uses suggests use of FList on "current drive, because:
  42.  
  43.     \DOS\TEST.TXT will match    \DOS\TEST.TXT but
  44.   C:\DOS\TEST.TXT won't match D:\DOS\TEST.TXT.
  45.  
  46. FList is provided as is.  The Turbo Pascal 4.0 source code is
  47. provided, so if you don't like what it does, you can change it.
  48.  
  49. -----------------------------------------------------------------
  50.  
  51. A brief explanation of what each example syntax will do follows:
  52.  
  53. flist
  54.  
  55. This will display all the files on the default disk on the screen.
  56. The file names will include the full path, but will NOT include
  57. the drive letter (i.e. \DOS\TEST.TXT).
  58.  
  59. flist d:
  60.  
  61. This will display all the files on the D: disk drive on the screen.
  62. The file names WILL include the drive letter (i.e. D:\DOS\TEST.TXT).
  63.  
  64. flist c: > a:\files.c
  65.  
  66. This will create a file on the A: disk drive called Files.C
  67. listing all the files on the C: disk drive, with the drive letter
  68. preceding each file name.
  69.  
  70. flist > a:\files.c
  71.  
  72. This will create a file on the A: disk drive called Files.C
  73. listing all the files on the current or default disk drive.
  74. Would probably only make sense if the C: drive is the default
  75. disk drive when the command is issued.  The drive letter will NOT
  76. precede each file name.
  77.  
  78. flist ?
  79.  
  80. This will display the Syntax and Examples shown above.
  81.  
  82. ------- message with example use of FList with Paradox ---------
  83.  
  84. #: 10 S0/EasyPlex
  85.     17-Jun-88 20:16 PDT
  86. Sb: Disk Reorganization
  87.  
  88.     I saw your message on the Borland Paradox SIG.  If I
  89. understand the problem, you're trying to find out which files are
  90. missing from a disk drive, when you tried to transfer all of them
  91. (with the same directory structure) from one machine to another.
  92.     The next EasyPlex message is a Binary file (FList.Arc) that might
  93. help you.  I hope you're using TapCis or some such program that
  94. makes it easy to download binary EasyPlex messages.  TapCis will
  95. handle it automatically, but put it in a file EPlex1.Bin or some
  96. such.
  97.     All FList does is list all of the files on a drive to the
  98. screen or via re-direction, to a file.  But with Paradox, you could
  99. easily use it to find the missing files.  I'd suggest the following
  100. steps (I'll call the drives you want to compare Source and Dest):
  101.  
  102. 01) ArcE FList.Arc and put Flist.Exe & Doc on your path somewhere
  103. 02) put a blank formatted floppy in A:
  104. 03) make Source the current default disk drive
  105. 04) FList > A:\Source.Lst
  106. 05) make Dest the current default disk drive
  107. 06) FList > A:\Dest.Lst
  108. 07) start up Paradox
  109. 08) Create a table called Source with 1 field = FileName A64
  110. 09) Tools/ExportImport/Import/Ascii/AppendDelimited A:\Source.Lst
  111.     to table Source
  112. 10) Create a table called Dest with 1 field = FileName A64
  113. 11) Tools/ExportImport/Import/Ascii/AppendDelimited A:\Dest.Lst
  114.     to table Dest
  115. 12) Tools/More/Subtract Dest from Source (I don't remember the
  116.     syntax to do the subtraction right, but I'm sure you do).
  117.  
  118.     The Source table will now contain a list of the files that
  119. didn't make it to the Destination (it will also show the volume
  120. label name, if they're different).  Or if you want to do it the
  121. other way, reverse the subtraction.  You can always delete and
  122. re-create the tables by importing again.
  123.  
  124.