<html><!-- This document was created with HomeSite 2.5 -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<meta content="all" name="robots" />
<meta name="keywords" content="DOS,DOS命令,DOS技术,DOS资料,DOS编程,DOS病毒,病毒,DOS怀旧存档,计算机,WINDOWS,软件,绿软,免费资源,图片,壁纸,音乐"><TITLE>SmartDrive</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></HEAD>
<style>
BODY {SCROLLBAR-FACE-COLOR: #0099FF; SCROLLBAR-HIGHLIGHT-COLOR: #0099FF; SCROLLBAR-SHADOW-COLOR: #FFFFFF; SCROLLBAR-3DLIGHT-COLOR: #9999FF; SCROLLBAR-ARROW-COLOR: #FFFFFF; SCROLLBAR-TRACK-COLOR: #0099FF; SCROLLBAR-DARKSHADOW-COLOR: #ffccff; }
</style>
<BODY oncontextmenu="return false" onselectstart="return false"
ondragstart="return false"background="../../../G/BGS-1.gif" tppabs="http://o.99081.com/dukedz/DOS/G/BGS-1.gif" text="#000000" link="#0099FF" vlink="#9999FF" alink="#FF0000">
<!--Masthead-->
<TABLE border=0 width=640 align="center"><TR><TD width=562>
<h1>SmartDrive</h1></TD>
<TD><a href="../commandintro.html" tppabs="http://o.99081.com/dukedz/DOS/F/DOS7/commandintro.html"><img src="../images/index.gif" tppabs="http://o.99081.com/dukedz/DOS/F/DOS7/images/index.gif" width=75 height=97 border=0 alt="Index"></a></TD></TR>
</TABLE>
<!--MAIN TABLE-->
<TABLE border=0 width=640 align="center"><TR><TD>
<p>Installs and configures the SMARTDrive disk-caching utility.
<h2>Syntax</h2>
<p><b>SMARTDRV [<i>parameters</i>] [<i>/switches</i>]</b>
<table cellpadding=5>
<tr><td colspan=2><i>parameters</i></td></tr>
<tr valign="top"><td width="60"><b><i>drive</i></b></td>
<td>Sets caching options on specific drive(s).
<br>+: Enables write-behind caching for the specified drive.
<br>-: Disables all caching for the specified drive(default if <b><i>drive</i></b> is specified).</td></tr>
<tr valign="top"><td><b>InitCacheSize</b></td><td>Specifies XMS memory (KB) for the cache.</td></tr>
<tr valign="top"><td><b>WinCacheSize</b></td><td>Specifies XMS memory (KB) for the cache with Windows.</td></tr>
<tr><td colspan=2><i>switches</i></td></tr>
<tr valign="top"><td><b>/X</b></td>
<td>Disables write-behind caching for all drives.</td></tr>
<tr valign="top"><td><b>/U</b></td><td>Do not load CD-ROM caching module.</td></tr>
<tr valign="top"><td><b>/C</b></td><td>Writes all information currently in write-cache to hard disk.</td></tr>
<tr valign="top"><td><b>/R</b></td><td>Clears the cache and restarts SMARTDrive.</td></tr>
<tr valign="top"><td><b>/F</b></td><td>Writes cached data before command prompt returns (default).</td></tr>
<tr valign="top"><td><b>/N</b></td><td>Doesn't write cached data before command prompt returns.</td></tr>
<tr valign="top"><td><b>/L</b></td><td>Prevents SMARTDrive from loading itself into upper memory.</td></tr>
<tr valign="top"><td><b>/V</b></td><td>Displays SMARTDrive status messages when loading.</td></tr>
<tr valign="top"><td><b>/Q</b></td><td>Does not display status information.</td></tr>
<tr valign="top"><td><b>/S</b></td><td>Displays additional information about SMARTDrive's status.</td></tr>
<tr valign="top"><td><b>/E:ElementSize</b></td><td>Specifies how many bytes of information to move at one time.</td></tr>
<tr valign="top"><td><b>/B:BufferSize</b></td><td>Specifies the size of the read-ahead buffer.</td></tr>
<tr valign="top"><td width="60"><b><i></i></b></td><td></td></tr>
<tr valign="top"><td><b></b></td><td></td></tr>
</table>
<h2>Notes</h2>
<ol>
<li>For general use in Win 95/8, disk caching is organised by VCache and Smartdrive is neither required nor offers any benefits. The only circumstance I have been able to determine where Smartdrive has a role is when the CD drive is operating with real-mode drivers that have to be loaded in config.sys/autoexec.bat. These drives are listed in the MS Knowledge Base article <a href="javascript:if(confirm('http://support.microsoft.com/support/kb/articles/Q131/4/99.asp \n\n文件并未依 Teleport Pro 取回,因为 它的域或路径超过开始网址中设置的范围。 \n\n你要从服务器上打开它吗?'))window.location='http://support.microsoft.com/support/kb/articles/Q131/4/99.asp'" tppabs="http://support.microsoft.com/support/kb/articles/Q131/4/99.asp">Q131499</a> and include Micro Solutions' Backpack external CD-ROM along with several that connect to sound cards. For these drives, SmartDrive will improve performance and should be installed in autoexec.bat.
<li>Smartdrv cannot be loaded in a Dos box.
<li>A good explanation of how Smartdrv works can be found at <a href="javascript:if(confirm('http://support.microsoft.com/support/kb/articles/q83/3/25.asp \n\n文件并未依 Teleport Pro 取回,因为 它的域或路径超过开始网址中设置的范围。 \n\n你要从服务器上打开它吗?'))window.location='http://support.microsoft.com/support/kb/articles/q83/3/25.asp'" tppabs="http://support.microsoft.com/support/kb/articles/q83/3/25.asp">Q83325</a> and is quoted below:
The information in this article applies to:
Microsoft Windows 3.1
INTRODUCTION
============
Microsoft Windows operating system version 3.1 has a number of
enhancements over previous versions that improve both its usability
and its performance. Foremost among these enhancements are Windows
3.1's improved features for accessing and utilizing the hard drive of
your PC.
SMARTDRIVE 4.0 DISK CACHE
=========================
Microsoft's first release of the Windows graphical environment
included a disk caching program called SMARTDrive 3.03. SMARTDrive has
been improved with each subsequent release of Windows and has been
entirely redesigned in Windows version 3.1. SMARTDrive 4.0 in Windows
3.1 provides faster and more intelligent disk caching that takes
better advantage of the revolutionary way that Windows and Windows-
based applications use extended memory.
SMARTDrive 4.0 gives Windows 3.1:
- Improved performance by speeding up hard disk and RAM access.
- Improved stability in 386 enhanced mode by double buffering data
when needed.
The remainder of this section compares the performance of SMARTDrive
4.0 to SMARTDrive 3.x and illustrates how SMARTDrive 4.0 works at a
more technical level.
WHAT IS SMARTDRIVE?
===================
SMARTDrive is a disk caching program that intercepts system calls to
the hard disk to control read/write access to the disk. SMARTDrive
intercepts any calls to the hard disk and loads the needed data into a
cache it establishes in RAM. (Unless specified otherwise, SMARTDrive
automatically determines a reasonable cache size based on the amount
of free extended memory available when it initially loads; the maximum
amount it will take is around 2 MB.) Subsequent calls to the hard disk
are intercepted by SMARTDrive, which scans the cache for the requested
data. If the data is already present in the cache, SMARTDrive can
access it directly in RAM. If the data is not in the cache, SMARTDrive
accesses the hard disk and loads the necessary data into the cache.
The least recently used data residing in RAM is cached back to the
hard disk to make room for the new data. By loading blocks of data
from the hard disk into RAM, SMARTDrive helps decrease the number of
calls to the hard disk. This can dramatically speed up applications
that repeatedly access the hard disk for data because accessing the
hard disk is considerably slower than accessing RAM. Essentially,
SMARTDrive attempts to maintain information in RAM that an application
needs at any given time from the hard disk.
SMARTDRIVE 3.X
==============
To understand why SMARTDrive needed to be redesigned, lets look at
how SMARTDrive 3.x works and examine some of the shortcomings of its
design. First, SMARTDrive 3.x is a read-only tra