📄 bat.def
字号:
; PSPad clip definition file for MS-Dos BAT
; author: ing. Jan Fiala pspad@wo.cz
; last revision: 30.8.2003
;
[APPEND | Search path for data files]
APPEND |[d:]path[;][d:]path[...]
[APPEND1 |d Search path for data files]
APPEND ;
APPEND [d:]path[;][d:]path[...]
APPEND |[/X:on|off][/path:on|off] [/E]
Rem Displays or sets the search path for data files. DOS will search
Rem the specified path(s) if the file is not found in the current path.
Rem /X[:ON|:OFF]
Rem Specifies whether MS-DOS is to search (/X:ON) or not search (/X:OFF)
Rem appended directories. The default value is /X:OFF.
Rem /PATH:ON|/PATH:OFF
Rem Specifies whether a program is to search appended directories for a data
Rem file when a path is already included with the name of the file the
Rem program is looking for. The default setting is /PATH:ON.
Rem /E
Rem Assigns the list of appended directories to an environment variable
Rem named APPEND. This switch can be used only the first time.
[ASSIGN | Redirects disk drive requests to a different drive]
ASSIGN |x=y [...] /sta
[ATTRIB | File attributes setting]
ATTRIB |[+R|-R] [+A|-A] [+S|-S] [+H|-H] [d:][path]filename [/S]
[ATTRIB1 |d File attributes setting]
ATTRIB |[d:][path]filename [/S]
ATTRIB [+R|-R] [+A|-A] [+S|-S] [+H|-H] [d:][path]filename [/S]
Rem Sets or displays the read-only, archive, system,
Rem and hidden attributes of a file or directory.
Rem + sets attribute
Rem - clear attribute
Rem R Read-Only file
Rem A Archive file
Rem S System file
Rem H Hidden file
Rem /S processes files in the current directory and all of its subdirectories
[BACKUP | Makes a backup copy of one or more files]
BACKUP |d:[path][filename] d:[/S][/M][/A][/F:(size)] [/P][/D:date] [/T:time] [/L:[path]filename]
[BREAK | Check for Ctrl + Break]
BREAK=|on|off
[BUFFERS | Number of disk buffers]
BUFFERS=|number[,read_ahead_number]
[BUFFERS1 |d Number of disk buffers]
BUFFERS=|number[,read_ahead_number]
Rem Used in the CONFIG.SYS file to set the number of disk buffers (number)
Rem that willbe available for use during data input. Also used to set a value
Rem for the numberof sectors to be read in advance (read-ahead) during
Rem data input operations.
Rem numbers = 0..99, read-ahead number = 1..8
[CALL | Calls another batch file]
CALL |[d:][path]batchfilename [options]
[CHCP | Displays the current code page]
CHCP (codepage)
[CHDIR | Change working directory]
CHDIR |(CD) [d:]path
[CHKDSK | Checks a disk]
CHKDSK |[d:][path][filename] [/F][/V]
[CHKDSK1 |d Checks a disk]
CHKDSK |[d:][path][filename] [/F][/V]
Rem Checks a disk and provides a file and memory status report.
Rem /F fixes errors on the disk. Do not use this option when running CHKDSK
Rem from other programs In general, when fixing disk errors, use
Rem ScanDisk instead of CHKDSK.
Rem /V Displays the name of each file in every directory as the disk is
Rem checked.
[CHOICE | Provides a prompt ofr user choice]
CHOICE |[/C[:]keys] [/N][/S][/T[:]c,nn] [text]
[CHOICE1 |d Provides a prompt ofr user choice]
Rem CHOICE |[/C[:]keys] [/N][/S][/T[:]c,nn] [text]
Rem Used to provide a prompt so that a user can make a choice
Rem while a batch program is running.
Rem /C[:]keys
Rem Specifies allowable keys in the prompt. When displayed, the keys will be
Rem separated by commas, will appear in brackets ([]), and will be followed
Rem by a question mark. If you don't specify the /C switch, CHOICE uses YN
Rem as the default. The colon (:) is optional.
Rem /N Causes CHOICE not to display the prompt. The text before the prompt is
Rem still displayed, however
Rem /S Causes CHOICE to be case sensitive
Rem /T[:]c,nn
Rem Causes CHOICE to pause for a specified number of seconds before
Rem defaulting to a specified key.
Rem c specifies the character to be default
Rem nn number of seconds
[CLS | CLear screen]
CLS|
[COMMAND | Starts a new version of command processor]
COMMAND |[d:][path] [device] [/P][/E:(size)] [/MSG][/Y [/C (command)|/K (command)]
[COMMAND1 |d Starts a new version of command processor]
COMMAND |[d:][path] [device] [/P][/E:(size)] [/MSG][/Y [/C (command)|/K (command)]
Rem Starts a new version of the DOS command processor
Rem (the program that loads the DOS Internal programs).
Rem /C command
Rem Specifies that the command interpreter is to perform the specified
Rem command and then exit. This switch must be the last switch on the
Rem command line.
Rem /E:nnnnn
Rem Specifies the environment size, where nnnnn is the size in bytes. The
Rem value of nnnnn must be in the range 160 through 32768. MS-DOS rounds
Rem this number up to a multiple of 16 bytes. The default value is 256.
Rem /K command
Rem Runs the specified command, program, or batch program and then displays
Rem the MS-DOS command prompt. This switch must be the last switch on the
Rem COMMAND command line.
Rem /P switch makes the new copy of the command interpreter permanent.
Rem In this case, the EXIT command cannot be used to stop the command interpreter.
Rem /MSG
Rem Specifies that all error messages should be stored in memory. Usually,
Rem some messages are stored only on disk. This switch is useful only if you
Rem are running MS-DOS from floppy disks. You must specify the /P switch
Rem when you use the /MSG switch.
Rem /Y Directs COMMAND.COM to step through the batch file specified by the /C
Rem or /K switches. This switch is useful for debugging batch files. For
Rem example, to step through the TEST.BAT batch file line by line, you would
Rem type COMMAND /Y /C TEST. The /Y switch requires either the /C or the /K
Rem switch.
[COMP | Compares two groups of files]
COMP |[d:][path][filename] [d:][path][filename] [/A][/C][/D][/L][/N:(number)]
[COPY | Copies and appends files]
COPY |[/Y|-Y] [/A][/B] [d:][path]filename [/A][/B] [d:][path][filename] [/V]
[COPY1 |d Copies and appends files]
COPY |[/Y|-Y] [/A][/B] [d:][path]filename [/A][/B] [d:][path][filename] [/V]
Rem Copies and appends files.
Rem /Y Indicates that you want COPY to replace existing file(s) without
Rem prompting you for confirmation.
Rem /-Y Indicates that you want COPY to prompt you for confirmation when
Rem replacing an existing file.
Rem /A Indicates an ASCII text file.
Rem /B Indicates a binary file.
Rem /V Verifies that new files are written correctly.
[COUNTRY | Use country-specific text conventions]
COUNTRY=|country code,[code page][,][d:][filename]
[CTTY | Changes the standard console output]
CTTY |device
[DATE | Displays and/or sets the system date]
DATE |mm-dd-yy
[DBLSPACE |d Program for disk compress]
DBLSPACE |/automount=drives
DBLSPACE /chkdsk [/F] [d:]
DBLSPACE /compress d: [/newdrive=host:] [/reserve=size] [/F]
DBLSPACE /create d: [/newdrive=host:] [/reserve=size] [/size=size]
DBLSPACE /defragment [d:] ]/F]
DBLSPACE /delete d:
DBLSPACE /doubleguard=0|1
DBLSPACE /format d:
DBLSPACE [/info] [d:]
DBLSPACE /list
DBLSPACE /mount[=nnn] host: [/newdrive=d:]
DBLSPACE /ratio[=ratio] [d:] [/all]
DBLSPACE /size[=size] [/reserve=size] d:
DBLSPACE /uncompress d:
DBLSPACE /unmount [d:]
Rem A program that allows you to compress information on a disk.
[DEBUG | Utility for other program debugging]
DEBUG [pathname] [parameters]
[DEFRAG | Reorganize the files on the disk]
DEFRAG |[d:] [/F][/S[:]order] [/B][/skiphigh [/LCD|/BW|/GO] [/H]
[DEFRAG1 |d Reorganize the files on the disk]
DEFRAG |[d:] [/F][/S[:]order] [/B][/skiphigh [/LCD|/BW|/GO] [/H]
DEFRAG [d:] [/V][/B][/skiphigh] [/LCD]|/BW|/GO] [/H]
Rem Optimizes disk performance by reorganizing the files on the disk.
Rem /F Defragments files and ensures that the disk contains no empty spaces
Rem between files.
Rem /U Defragments files and leaves empty spaces, if any, between files.
Rem /S Controls how the files are sorted in their directories.
Rem Use any combination of the values, and do not separate with spaces:
Rem N In alphabetic order by name
Rem N- In reverse alphabetic order by name (Z through A)
Rem E In alphabetic order by extension
Rem E- In reverse alphabetic order by extension (Z through A)
Rem D By date and time, earliest first
Rem D- By date and time, latest first
Rem S By size, smallest first
Rem S- By size, largest first
Rem /B Restarts your computer after files have been reorganized.
Rem /SKIPHIGH
Rem Loads DEFRAG into conventional memory. By default, DEFRAG is loaded into
Rem upper memory, if upper memory is available.
Rem /LCD
Rem Starts DEFRAG using an LCD color scheme.
Rem /BW Starts DEFRAG using a black and white color scheme.
Rem /G0 Disables the graphic mouse and graphic character set.
Rem /H Moves hidden files.
[DEL | Delete file(s)]
DEL |[d:][path]filename [/P]
[DELOLDOS | Deletes files from previous versions of DOS]
DELOLDOS |[/B]
[DELTREE | Deletes a directory including all files]
DELTREE |[/Y] [d:]path [d:]path[...]
[DEVICE | Load device driver]
DEVICE=|(driver name)
[DEVICEHIGH | Install the device driver into the upper memory]
DEVICEHIGH=|(driver name)
[DIR | Displays directory content]
DIR |[d:][path][filename] [/A:(attributes)] [/O:(order)] [/B][/C][/CH][/L][/S][/P][/W]
[DIR1 |d Displays directory content]
DIR |[d:][path][filename] [/A:(attributes)] [/O:(order)] [/B][/C][/CH][/L][/S][/P][/W]
Rem Displays directory of files and directories stored on disk.
Rem /P Displays one screen of the listing at a time.
Rem /W Displays the listing in wide format, with as many as five filenames or
Rem directory names on each line.
Rem /A[[:] attributes]
Rem Displays only the names of those directories and files with the
Rem attributes you specify. If you omit this switch, DIR displays the names
Rem of all files except hidden and system files. If you use this switch
Rem without specifying attributes, DIR displays the names of all files,
Rem including hidden and system files. The following list describes each of
Rem the values you can use for attributes. The colon (:) is optional. Use
Rem any combination of these values, and do not separate the values with
Rem spaces.
Rem H Hidden files
Rem -H Files that are not hidden
Rem S System files
Rem -S Files other than system files
Rem D Directories
Rem -D Files only (not directories)
Rem A Files ready for archiving (backup)
Rem -A Files that have not changed since the last backup
Rem R Read-only files
Rem -R Files that are not read-only
Rem /O[[:] sortorder]
Rem Controls the order in which DIR sorts and displays directory names and
Rem filenames. The following list
Rem describes each of the values you can use for sortorder. Use any
Rem combination of the values, and do not separate these values with
Rem spaces.
Rem N In alphabetic order by name
Rem -N In reverse alphabetic order by name (Z through A)
Rem E In alphabetic order by extension
Rem -E In reverse alphabetic order by extension (Z through A)
Rem D By date and time, earliest first
Rem -D By date and time, latest first
Rem S By size, smallest first
Rem -S By size, largest first
Rem G With directories grouped before files
Rem -G With directories grouped after files
Rem C By compression ratio, lowest first.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -