
Cyldir, version 3.9.         Copyright Svend Olaf Mikkelsen, 2000.

Usage: Cyldir <disk number> <cylinder> <head> <sector> <FAT size>
<cluster size> <root>  [copyfiles <directory cluster>] [<search log file>]

Lists lost, not lost and obsolete directories found in a FAT
partition with FAT at the given location. Short filenames are shown.
<FAT size> in sectors. <cluster size> in KB. <root> entries for FAT16,
root cluster for FAT32. <search log file> extension must be .txt. 

Or copies files from a lost directory. If the 'copyfiles' option is used,
the current directory must be empty if not root. The directory cluster
numbers can be found in the search log file.

In pure DOS longname.bat for renaming is added. A file cyldir.log is
added with names of files which are not readable or may be fdisk damaged.
Long file names might not be quite correct. Files > 2 GB cannot be copied.

NB:  Run Cyldir from floppy or a partition without problems.
NB:  Copied files cannot be expected to be OK.

For more info, enter: Cyldir moreinfo

Alternate usage:  Cyldir <directory cluster> dir  [<copy log file>]
Or:               Cyldir <directory cluster> tree [<copy log file>]

A search log file cdir.txt must exist in current directory, or in the root
of current partition. Recommended: Put cdir.txt and cyldir.exe in a new
empty directory, e.g. \target, and work from there.

Copies files from lost partition. Directories are created relative
to current directory. If 'tree' is specified, files in subdirectories
are copied. If target subdirectories already exist, they must be empty.
Up to ten <directory cluster> can be entered. If the root directory
cluster number is entered with the tree option, you can add '+lost' to
the command line to include lost directories, beginning with ? in cdir.txt.

If run in a Windows DOS box, long file names are copied. If run in pure
DOS, a file longname.bat for renaming to long file names is created in
each directory. Enough free space should be present.

To stop after current directory, press <Esc>.
To write a directory listing to cdir.lst, use:  Cyldir list

For an example of how to list and copy files, type: Cyldir example

Example: From Findpart or Findfat you have for disk 1:

-----FAT CHS -Size Cl --Root -Good -Rep. Maybe --Bad YYMMDD DataMB
  260   0 33  1204  4      2  1204     0     0     0 981124    516

The Cyldir command line to list the files to cdir.txt is the
disk number followed by the first 6 numbers in the above line, 
followed by the file name cdir.txt:

cyldir 1 260 0 33 1204 4 2 cdir.txt

Then find some directory cluster numbers in cdir.txt, or do
'cyldir list' and find the numbers in cdir.lst. Copy cyldir.exe
and cdir.txt to a new directory e.g. \target if they are not already
there. The commands to copy a single directory, or an entire tree,
with cluster number 117 (example) are (only do one of these):

cyldir 117 dir
cyldir 117 tree

In most cases the main challenge is to be sure that no copy of lost
files can be in the target partition. This could be the case if partitions
overlaps, or old deleted copies of the lost files exists.
