DFUHLP.HLB  —  DFU  DEFRAG
 The defrag option is used to defragment a single file or files
 Syntax:

 	DEFRAG file1,file2,...,@file3 (/DEVICE=<device>/BESTTRY)

1  –  Parameters

 	file1,file2,...,@file3

 Specify a file (or list of files) with a full file specification
 or a logical name. Also use an indirect command file may be used,
 eg.: DEFRAG @DEFRAG.COM(/device=<device>). Thus it is possible
 to generate a list with SEARCH device/OUTPUT=file and use that file
 as input to the DEFRAG command. The list generated by DFU SEARCH will
 contain the device name in the file specification. If there is a filelist
 from another source which does not contain the device name, the

1.1    /DEVICE qualifier must be used to append the device name to the file.

2  –  Qualifiers

2.1    /BESTTRY

 This qualifier directs DFU to create a file using the contiguous-best-try
 method. Default DFU tries to make a completely contiguous file. On highly
 fragmented or used disks this may be impossible.

2.2    /DEVICE=device_name

 Append the device-name to the filename.

2.3    /LBN=<logical-block-number>

 Move a single file to the target logical block number. This is faster
 than having the file system search for a new LBN location.
 Caution: Use this qualifier only for processing a single file, not
 a list of files. If there is not enough contiguous free space
 available at the target LBN Defrag will fail with a
 DEVICEFULL error.

2.4    /STATISTICS

    /STATISTICS
    /NOSTATISTICS  (default)

    Controls whether CPU and I/O consumption of the
    command are shown.

2.5    /WRITECHECK

    /WRITECHECK
    /NOWRITECHECK  (default)

    Performs a write check on the resultant file after the defragment
    operation.
Close Help