                   SD (Speed Disk) (Advanced Edition only)


Description:   Increases the speed at which data can be accessed. The command
               does this by moving allocated data fragments so that each
               directory or file is stored in contiguous space. This command
               also lets you produce a report about file, directory, or drive
               fragmentation. In version 4.5, you can specify the priority
               order for frequently used directories and files.


Syntax:        Version 4.0:   SD [(drive:)] [/A] [/D0 | /D1 | D2] [[[/F(n)]
                              [/B(n)]] | /BW | /TV]

                              SD [(drive:)] [(path)] [(filespec)] [/REPORT
                              [/P] [/S] [/T]]

               Version 4.5:   SD [(drive:)] [/A] [/C] [/D] [/P] [/Q] [/U]
                              [/V] [/D0 | /D1] [/BW] [/NOSNOW]

                              SD [(drive:)][(path)][(filespec)] [/REPORT [/P]
                              [/S] [/T]]



                                 Parameters:


(drive:)       The single-letter specifier (A:, B:, C:, etc.) for the drive
               you want to process. Follow the letter with a colon. The
               current drive is the default.

(path)         The full name (C:\WP\LETTERS) of the directory that SD
               initially selects for processing if you include the /REPORT
               switch. The current directory for the designated drive is the
               default.

(filespec)     The name of the file(s) for which you want to produce a
               fragmentation report. (See /REPORT.) The default (filespec) is
               *.*.

/A             Rearranges disk allocation without prompting for verification.
               Use this switch if you run SD from a batch file.

/B(n)          Specifies the background color for the screen displays. Use an
               integer from 0 through 15 to specify the color. If you attempt
               to specify identical foreground and background colors, SD adds
               one to the foreground color number before beginning execution.
               Avoid using the high-intensity shade of a color for the
               foreground with the normal-intensity shade of the same color
               for the background (for example, /F12 bright red and /B4 red).
               The default is /B1 (blue). See <NUCOLOR>.

/BW            Specifies a black-and-white display.

/C             Establishes Complete Optimization as the default Optimization
               Method in the Set Options menu. Initiate Complete Optimization
               by pressing Enter when the main menu is displayed.

/D             Establishes only Optimize Directories as the default
               Optimization Method in the Set Options menu. This option
               unfragments directories only. Initiate directories
               optimization by pressing Enter when the main menu is
               displayed.

/D0            Requests the standard screen driver (the default) for a fully
               IBM-compatible computer system. This switch also sets the /D
               switch in version 4.5.

/D1            Requests the screen driver for a BIOS-compatible computer
               system. This switch also sets the /D switch in version 4.5.

/D2            Requests the ANSI.SYS driver for a non-IBM-compatible computer
               system.

/F(n)          Specifies the foreground color for the full-screen displays.
               Use an integer from 0 through 15 to specify the color. The
               default is /F15 (bright white). See <NUCOLOR>.

/NOSNOW        Prevents screen flicker if your system has an older CGA card.

/P             If you do not include the /REPORT switch, this switch
               suppresses display of nonprintable characters on the screen
               displays; however, when you use this display mode you cannot
               distinguish between used and unused blocks. If you include the
               /REPORT switch, SD displays the report in pause mode: You
               initially see one screenful of information, and you must press
               the Spacebar to see the next screenful. 

               Press Enter to scroll up one line at a time. Press any key
               other than Spacebar, Enter, or Escape to exit pause mode. You
               can also enter pause mode during normal display by pressing
               any key other than Escape.

/Q             Establishes Quick Compress optimization as the default option
               in the Optimize Disk menu. This option packs the data at the
               beginning of the disk but does not unfragment files. Initiate
               Quick optimization by pressing Enter when the menu is
               displayed.

/REPORT        Produces a fragmentation report only. This option produces the
               report for all files whose names match (filespec) in (path).
               The default (filespec) is *.*. A summary total for the entire
               drive is also displayed. You can direct the report to either a
               printer or a file by using the MS-DOS output redirection
               character ()) followed by a printer name or a filename at the
               end of the command.

/S             Processes all files whose names match (filespec) in all
               subdirectories under the current or specified path.

/T             Shows the fragmentation totals only when SD produces a report.
               A total is displayed for each directory. If SD is in pause
               mode (see /P), the utility might pause several times before
               you see a total.

/TV            Indicates that the utility is running under either  TopView or
               Microsoft Windows.

/U             Establishes File Unfragment as the default Optimization Method
               in the Set Options menu. SD attempts to unfragment files as
               much as possible without moving files that are already
               contiguous. Initiate file unfragmentation by pressing Enter
               when the main menu is displayed.

/V             Verifies that data is written to the disk accurately.


                                   Notes:

ͻ
                              *!* Warning *!*                             
                                                                          
 Do not turn off your computer while SD is reorganizing your disk or your 
 disk might be damaged.                                                   
ͼ

SD might take 30 minutes or more to reorganize a large hard drive. You can
safely interrupt the process at any point by pressing Escape; SD finishes any
reorganization in progress before halting.

Back up your disk before running SD. Some copy-protection schemes might be
incompatible with the reorganization performed by SD.


Before running SD, be sure to stop any memory-resident programs that might
access the disk while the disk is being reorganized.

After SD has finished reorganizing your disk, the utility asks you whether
you want to reboot your computer. Reboot if you are using the Fastopen
program in MS-DOS version 3.3 or later or if you have a RAM disk installed.

Speed Disk Main Menu <NUSD01><NUSD02>.

<NUSD03> shows the screen display for SD in version 4.5 after you select Set
Options from the master menu in the lower left corner. Choose Optimization
method to select the Complete Optimization, File Unfragment, Quick Compress,
or only Optimize Directories option. 

Choose Directory order to define directory priority; for more information,
see the note below. Choose Files To Put First to reset file priority; SD
ensures that files with the EXE or COM extension will be first on the disk.
Choose Unmovable files to name files you do not want SD to move. 

Choose Show static files to see the names of system files SD has determined
are unmovable. Choose Verify is  OFF to indicate that you want SD to verify
all data it has moved. Choose Exit and Save Options to leave SD and save your
option settings.






After you have set all reorganization options and chosen a drive, be sure the
highlight is on the Optimize Disk option on the main menu and press Enter to
begin execution. SD updates the display as it reorganizes the disk.

To specify the storage order of directories, choose Directory order from the
Set Options menu. The Directory Order selection submenu appears as shown in
Figure 7. The left side of the menu shows the existing directory tree.
Highlight the directory names in the desired sequence and press Enter to
specify the order in which directories are to be stored on the disk. Selected
directories are shown on the right side of the menu. Press Tab to move to the
right side to reorder or delete selected directories or to indicate that you
have finished defining directory priority.

