⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bat.def

📁 是一个很好的编辑器
💻 DEF
📖 第 1 页 / 共 4 页
字号:
Rem       -C  By compression ratio, highest first.
Rem /S  Lists every occurrence, in the specified directory and all
Rem     subdirectories, of the specified filename.
Rem /B  Lists each directory name or filename, one per line (including the
Rem     filename extension). This switch displays no heading information and no
Rem     summary. The /B switch overrides the /W switch.
Rem /L  Displays unsorted directory names and filenames in lowercase. This
Rem     switch does not convert extended characters to lowercase.
Rem /C[H]
Rem     Displays the compression ratio of files compressed using DoubleSpace or
Rem     DriveSpace, based on an 8K cluster size. The optional H switch displays
Rem     the compression ratio of files compressed using DoubleSpace or
Rem     DriveSpace, based on the cluster size of the host drive. The /C[H]
Rem     switch is ignored when used with the /W or /B switch.
[DISKCOMP | Compares the contents of two diskettes]
DISKCOMP |[d:] [d:][/1][/8]
[DISKCOMP1 |d Compares the contents of two diskettes]
DISKCOMP |[d:] [d:][/1][/8]
Rem Compares the contents of two diskettes.
Rem /1  Compares only the first sides of the disks, even if the disks are
Rem     double-sided and the drives can read double-sided disks.
Rem /8  Compares only the first 8 sectors per track, even if the disks contain 9
Rem     or 15 sectors per track.
[DISKCOPY | Makes an exact copy of a diskette]
DISKCOPY |[d:] [d:][/1][/V][/M]
[DISKCOPY1 |d Makes an exact copy of a diskette]
DISKCOPY |[d:] [d:][/1][/V][/M]
Rem Makes an exact copy of a diskette.
Rem /1  Copies only the first side of a disk.
Rem /V  Verifies that the information is copied correctly. Use of this switch
Rem     slows the copying process.
Rem /M  Forces DISKCOPY to use only conventional memory for interim storage. By
Rem     default, DISKCOPY uses your hard disk as an interim storage area so you
Rem     don't have to swap floppy disks.
[DOS | Specify the memory location for DOS]
DOS=[high|low],[umb|noumb]
[DOSKEY | Program to recall DOS commands]
DOSKEY |[reinstall] [/bufsize=size][/macros][/history][/insert|/overstrike] [macroname=[text]]
[DOSKEY1 |d Program to recall DOS commands]
DOSKEY |[reinstall] [/bufsize=size][/macros][/history][/insert|/overstrike] [macroname=[text]]
Rem Loads the Doskey program into memory which can be used
Rem to recall DOS commands so that you can edit them.
Rem /REINSTALL
Rem     Installs a new copy of the Doskey program, even if one is already
Rem     installed. In the latter case, the /REINSTALL switch also clears the
Rem     buffer.
Rem /BUFSIZE=size
Rem     Specifies the size of the buffer in which Doskey stores commands and
Rem     Doskey macros. The default size is 512 bytes.
Rem     The minimum buffer size is 256 bytes.
Rem /MACROS
Rem     Displays a list of all Doskey macros. You can use a redirection symbol
Rem     (Rem) with the /MACROS switch to redirect the list to a file. You can
Rem     abbreviate the /MACROS switch as /M.
Rem /HISTORY
Rem     Displays a list of all commands stored in memory. You can use
Rem     a redirection symbol (Rem) with the /HISTORY switch to redirect
Rem     the list to a file. You can abbreviate the /HISTORY switch as /H.
Rem /INSERT|/OVERSTRIKE
Rem     Specifies whether new text you type is to replace old text. If you use
Rem     the /INSERT switch, new text that you type on a line is inserted into
Rem     old text (as if you had pressed the INSERT key).
Rem     If you use the /OVERSTRIKE switch, new text replaces old text.
Rem     The default setting is /OVERSTRIKE.
Rem /APPEDIT
Rem     Submitted by Franc Zabkar:
Rem     The undocumented APPEDIT switch (in Win9x) enables command line history
Rem     in applications such as DEBUG.EXE.
[DOSSHELL | Graphic shell program]
DOSSHELL |[/B] [/G:[resolution][n]]|[/T:[resolution][n]]
[DOSSHELL1 |d Graphic shell program]
DOSSHELL |[/B] [/G:[resolution][n]]|[/T:[resolution][n]]
Rem Initiates the graphic shell program using the specified screen resolution.
Rem Parameters
Rem   resolution
Rem     Specifies a screen-resolution category. Valid values are L, M, and H to
Rem     specify low, medium, and high resolution, respectively. The default
Rem     value of res depends on your hardware.
Rem   n Specifies a screen resolution when there is more than one choice within
Rem     a category. For information about the valid values for this parameter,
Rem     see the "Notes" screen. The default value of n depends on your
Rem     hardware.
Rem /T  Starts MS-DOS Shell in text mode.
Rem /B  Starts MS-DOS Shell using a black-and-white color scheme.
Rem /G  Starts MS-DOS Shell in graphics mode.
[DRIVPARM | Set parameters for a disk drive]
DRIVPARM= |/D:(number) [/C] [/F:(form factor)] [/H:(number)] [/I][/N][/S:(number)] [/T:(tracks)]
[DRIVPARM1 |d Set parameters for a disk drive]
DRIVPARM= |/D:(number) [/C] [/F:(form factor)] [/H:(number)] [/I][/N][/S:(number)] [/T:(tracks)]
Rem Used in the CONFIG.SYS file to set parameters for a disk drive.
Rem /D:number
Rem     Specifies the physical drive number. Values for number must be in the
Rem     range 0 through 255 (for example, drive number 0 = drive A, 1 = drive B,
Rem     2 = drive C, and so on).
Rem /C
Rem     Specifies that the drive can detect whether the drive door is closed.
Rem /F:factor
Rem     Specifies the drive type. The following list shows the valid values for
Rem     factor and a brief description of each. The default value is 2.
Rem       0   160K/180K or 320K/360K
Rem       1   1.2 megabyte (MB)
Rem       2   720K (3.5-inch disk)
Rem       5   Hard disk
Rem       6   Tape
Rem       7   1.44 MB (3.5-inch disk)
Rem       8   Read/write optical disk
Rem       9   2.88 MB (3.5-inch disk)
Rem /H:heads
Rem     Specifies the maximum number of heads. Values for heads must be in the
Rem     range 1 through 99. The default value depends upon the value you specify
Rem     for /F:factor.
Rem /I  Specifies an electronically compatible 3.5-inch floppy disk drive.
Rem     (Electronically compatible drives are installed on your computer and use
Rem     your existing floppy-disk-drive controller.) Use the /I switch if your
Rem     computer's ROM BIOS does not support 3.5-inch floppy disk drives.
Rem /N  Specifies a non-Removable block device.
Rem /S:sectors
Rem     Specifies the number of sectors per track that the block device
Rem     supports. Values for sectors must be in the range 1 through 99. The
Rem     default value depends upon the value you specify for /F:factor.
Rem /T:tracks
Rem     Specifies the number of tracks per side that the block device supports.
Rem     The default value depends upon the value you specify for /F:factor.
[ECHO | Zobrazit hl釟ky v d醰kov閙 souboru]
ECHO |on|off
ECHO (message)
Rem Displays messages or turns on or off the display of commands in a batch file.
[EDIT | Starts the MS-DOS editor]
EDIT |[d:][path]filename [/B][/G][/H][/NOHI]
[EDIT1 |d Starts the MS-DOS editor]
EDIT |[d:][path]filename [/B][/G][/H][/NOHI]
Rem Starts the MS-DOS editor, a text editor used to create and edit ASCII text files.
Rem /B  Displays MS-DOS Editor in black and white. Use this option if MS-DOS
Rem     Editor isn't displayed correctly on a monochrome monitor.
Rem /G  Uses the fastest screen updating for a CGA monitor.
Rem /H  Displays the maximum number of lines possible for the monitor you are
Rem     using.
Rem /NOHI
Rem     Enables you to use 8-color monitors with MS-DOS Editor. Usually, MS-DOS
Rem     uses 16 colors.
[EMM386 | Expanded-memory support]
EMM386 |[on|off|auto] [w=on|off]
[EMM3861 |d Expanded-memory support]
EMM386 |[on|off|auto] [w=on|off]
Rem Enables or disables EMM386 expanded-memory support on a computer with
Rem an 80386 or higher processor.
Rem Parameters
Rem ON|OFF|AUTO
Rem     Activates the EMM386 device driver (if set to ON), or suspends the
Rem     EMM386 device driver (if set to OFF), or places the EMM386 device driver
Rem     in auto mode (if set to AUTO). Auto mode enables expanded-memory support
Rem     only when a program calls for it. The default value is ON.
Rem W=ON|W=OFF
Rem     Enables (if set to W=ON) or disables (if set to W=OFF) Weitek
Rem     coprocessor support. The default value is W=OFF.
[EXE2BIN | Converts .EXE files to binary format]
EXE2BIN |[d:][path]filename [d:][path]filename
[EXIT | Exits a secondary command processor]
EXIT|
[EXPAND | Expands a compressed file]
EXPAND |[d:][path]filename [[d:][path]filename[ . . .]]
[FASTHELP | Displays a list of DOS commands]
FASTHELP [command][command] /?
[FASTOPEN | Keeps track of the locations of files for fast access]
FASTOPEN d:|[=n][/X]
[FASTOPEN1 |d Keeps track of the locations of files for fast access]
FASTOPEN d:|[=n][/X]
Rem Keeps track of the locations of files for fast access.
Rem Parameters
Rem n   Specifies the number of files Fastopen can work with at the same time.
Rem     Valid values for n are in the range 10 through 999. The default is 48.
Rem Switch
Rem /X  Creates the name cache in expanded memory instead of in conventional
Rem     memory. The name cache is an area of memory in which MS-DOS stores
Rem     (caches) the locations and names of the files that you open. This cache
Rem     conforms to version 4.0 of the Lotus/Intel/Microsoft Expanded Memory
Rem     Specification (LIM EMS).
[FC | Displays the differences between files]
FC |[/A][/C][/L][/Lb n][/N][/T][/W][number] [d:][path]filename [d:][path]filename
[FC1 |d Displays the differences between files]
FC |[/A][/C][/L][/Lb n][/N][/T][/W][number] [d:][path]filename [d:][path]filename
FC [/B][/number] [d:][path]filename [d:][path]filename
Rem Displays the differences between two files or sets of files.
Rem /A  Abbreviates the output of an ASCII comparison. Instead of displaying all
Rem     the lines that are different, FC displays only the first and last line
Rem     for each set of differences.
Rem /C  Ignores the case of letters.
Rem /L  Compares the files in ASCII mode. FC compares the two files line by line
Rem     and attempts to resynchronize the files after finding a mismatch. This
Rem     is the default mode for comparing files that do not have extensions of
Rem     .EXE, .COM, .SYS, .OBJ, .LIB, or .BIN.
Rem /LBn
Rem     Sets the number of lines for the internal line buffer. The default
Rem     length of the line buffer is 100 lines. If the files being compared have
Rem     more than this number of consecutive differing lines, FC cancels the
Rem     comparison.
Rem /N  Displays the line numbers during an ASCII comparison.
Rem /T  Does not expand tabs to spaces. The default behavior is to treat tabs as
Rem     spaces, with stops at each eighth character position.
Rem /W  Compresses white space (tabs and spaces) during the comparison. If a
Rem     line contains many consecutive spaces or tabs, the /W switch treats
Rem     these characters as a single space. When used with the /W switch, FC
Rem     ignores (and does not compare) white space at the beginning and end of a
Rem     line.
Rem /nnnn
Rem     Specifies the number of consecutive lines that must match before FC
Rem     considers the files to be resynchronized. If the number of matching
Rem     lines in the files is less than this number, FC displays the matching
Rem     lines as differences. The default value is 2.
Rem /B  Compares the files in binary mode. FC compares the two files byte by
Rem     byte and does not attempt to resynchronize the files after finding a
Rem     mismatch. This is the default mode for comparing files that have
Rem     extensions of .EXE, .COM, .SYS, .OBJ, .LIB, or .BIN.
[FCBS | Number of file-control blocks for file sharing]
FCBS=|(number)
[FDISK | Prepares a fixed disk]
FDISK |[/status] [/mbr]
Rem /mbr switch repair master boot record
[FILES | Maximum number of files open at the same time.]
FILES=(number)
[FIND | Finds the location of a specific string in file(s)]
FIND |[/V][/C][/I][/N] string [d:][path]filename[...]
[FIND1 |b Finds the location of a specific string in file(s)]
FIND |[/V][/C][/I][/N] string [d:][path]filename[...]
Rem Finds and reports the location of a specific string of text characters
Rem in one or more files.
Rem /V  Displays all lines not containing the specified string.
Rem /C  Displays only a count of the lines that contain the specified string.
Rem /N  Precedes each line with the file's line number.
Rem /I  Specifies that the search is not to be case-sensitive.
[FOR | Repeated execution of commands]
FOR |%%(variable) IN (set) DO (command)
FOR %(variable) IN (set) DO (command)
[FORMAT | Formats a disk]
FORMAT |d:[/1][/4][/8][/F:(size)] [/N:(sectors)] [/T:(tracks)][/B|/S][/C][/V:(label)] [/Q][/U][/V]
[FORMAT1 |d Formats a disk]
FORMAT |d:[/1][/4][/8][/F:(size)] [/N:(sectors)] [/T:(tracks)][/B|/S][/C][/V:(label)] [/Q][/U][/V]
Rem Formats a disk to accept DOS files.
Rem /V:label

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -