I don't know how many people think that DOS does not support USB devices. Since the USB device standard was developed after Windows 95, the former Microsoft boss of DOS had decided to give up its MS-DOS. As a result, when you want to operate a USB device under DOS, it is often only exclaiming. Even if the system you are using is Windows, when Windows crashes to back up or restore data, USB devices such as USB hard disks that you use usually become a device.
Fortunately, Microsoft does not decide everything, Pocketec company developed Duse for us to provide in DOS for USB storage devices (USB hard disk, floppy drive, optical drive) support, but it does not currently support the more common USB thumbdrive (U disk). to drive a USB u disk under DOS, use the motto Hairu driver. In addition, if you want to use other USB devices in pure DOS, such as USB mouse, USB printer, etc., you can use other USB drivers, such as the OHCI/UHCI in Usb_link, as well as Usb4dos, can be found in the "Driver" of the corresponding link, and can be in the " DOS in use FAQ (FAQ), see some DOS using USB device information.
Duse is a DOS USB storage device driver, currently the latest version of 4.2, is just launched this year. Its usage is simple, can be loaded in Config.sys, can also use its own duseldr.com program to implement in the DOS command line (including the batch file) load. For example, add a line to the Config.sys: Device=c:\dos\duse. EXE or execute Duseldr C:\DOS\DUSE on the DOS command line. EXE are available.
If you are loading a USB CD-ROM drive, in addition to loading the Duse driver, you also need to run the drive extension driver, you can usually use the DOS MSCDEX.EXE. The default optical drive device name for Duse is Usbcdrom, and the DOS command line can run MSCDEX.EXE as follows:
mscdex/d:usbcdrom/k
If you want to use and control duse better, you can use the parameters that it provides, and the Duse run parameters are as follows:
(Note: The following for its 4.2 version of the parameters, its latest 4.4 edition and added Emuirq, UBNU, ddwait and other parameters. [] In the case of Ver[bose] as an example, the verbose is the complete formulation of parameters, and Ver is abbreviated, that is, [] The BOSE can be omitted. )
1:VER[BOSE][=X], allowing display of status information. The legal values for X are 0, 1, and 2. 0 indicates that no information is displayed, 1 indicates a text message, and 2 indicates a pop-up window to display the information. The default value is 0, and the default value is 2 if the verbose parameter is entered but the value of x is not set.
2:wai[t]=x, sets the time (in seconds) to display the pop-up window to close the window. The legal value of x is between 0 and 255, and the default value is 3. This parameter is valid only if the value of verbose is 2.
3:dri[ves]=x, set the number of allowed USB drives. X takes values from 0 to 3. If set to 0, the support for USB drives is prohibited. The default value is 1.
4:nod[rives], disables support for USB drives. This parameter overrides the drives parameter setting.
5:noc[drom], disables support for USB CD-ROM drives.
6:mem[pool]=x, sets the size of the allocated additional memory. Duse the number of USB controllers, the speed of transmission, and so on, to determine the optimal allocation of memory size. Setting this parameter will determine the size of the memory allocation by the user, the unit of x value is KB, and the legal value is between 0 and 128.
7:xfer[size]=x, set the maximum allowable transfer buffer, and the X value Unit is KB. Increasing the transport buffer will enhance transport performance, but it also requires more memory. The default value is 16.
8:sec[torsize]=x, set the sector size of the USB drive. The value of x is expressed in bytes. The legal value is 512,1024 or 2048, and the default is 512.
9:apm[state]=x, set the level of APM in the USB device that is enabled by the APM (Advanced Power Management) feature. Increasing this level will increase the performance of the device, but will increase the loss of power. The status x values of the legitimate APM are listed below:
* Maximum Performance FEh
* Power management level in the middle when no suspend function 81h-fdh
* Minimum power loss 80h without suspend function
* Power management level in the middle when with suspend function 02h-7fh
* Minimum power loss 01h with suspend function
The default value for X is 0x7f.
10:INT[13], enable INT13 feature support for the hard drive. This feature provides support for some disk tools, such as Fdisk.
11:dma[safe], which allocates DMA security buffers used in data transfer. This parameter must be specified when running some buffered applications that need to be allocated from extended memory.
12:NOU[HCI] To prevent initialization of the UHCI USB controller.
13:NOO[HCI] To prevent initialization of the OHCI USB controller.
14:NOE[HCI] To prevent initialization of the EHCI USB controller.
15:uhcn=x, specifies that the maximum number of UHCI controllers initialized by Duse is x.
16:ohcn=x, specifies that the maximum number of OHCI controllers initialized by Duse is x.
17:ehcn=x, specifies that the maximum number of EHCI controllers initialized by Duse is x.
18:late[init], enables the "Delay initialization" feature. When this feature is used, the driver is loaded from the Config.sys file during the DOS boot phase, but the USB device is not officially enabled until the Duse is run using the init parameter in the DOS command, typically at the end of the Autoexec.bat file. See the section "Delay initialization" and "run Duse as an application" below.
19:ebar=x, specifies that the EHCI BAR (the base address register) is assigned to an in-memory address. The value of x must be a four-bit 16-digit number with a prefix of 0x, for example, to place the address of EHCI Bar to 0xe000, the correct command-line option is ebar=0xe000. The legal address area is between 0xa000 and 0xf400.
20:obar=x, specifies that the OHCI bar will be assigned to an in-memory address. The above description of Ebar can be applied to Obar.
21:ubar=x, specifies that the UHCI bar will be assigned to an in-memory address. The above description of Ebar can be applied to Ubar, but its legal address area is between 0x0400 and 0xf400.
22:cdw[ait][=x], indicates that the initialization of the duse is to wait until the letter of the first USB CD-ROM drive is assigned, or not to end within X seconds. The legal value of x is between 0 and 30. X=0 is a special value that indicates that Duse will wait until the letter of the first USB CD-ROM drive is assigned or the user presses the ESC key on the keyboard. If the value of x is not specified, the default is x=0.
23:cdd[evice]=< device Name, specifies the device name of the USB CD-ROM drive. The default device name is Usbcdrom.
24:vflop[py] To create a virtual image of a boot floppy disk when initialized.
The following is an example of using a command-line parameter. You can refer to this line to add Duse to the Config.sys file:
This example sets:
* Show pop-up status window
* Supports two USB drives
* Set maximum transfer buffer size to 8K
* Set the default sector size to 2048 bytes
* Prohibit support for USB CD-ROM drive
* About the function of "delay initialization"
When you run the Duse with the Late[init parameter in Config.sys (for example, using Device=duse. EXE LATE), it takes a real initialization to actually use a USB device. The real initialization approach is to use the Duse init command on the DOS command line, including in the batch file.
* About the "run Duse as an application" feature
When you use Duse as an application to run under the DOS command line, Duse only supports init parameters. This parameter is loaded on the DOS command line after "delayed initialization" above, allowing the duse to really initialize the USB device to actually use the USB device.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.