Displays or changes file attributes
ATTRIB [+R | -R] [+A | -A] [+S | -S] [+H | -H] [ [drive:] [path] filename] ] [/S]
+ Sets an attribute.
- Clears an attribute.
R Read-only file attribute.
A Archive file attribute.
S System file attribute.
H Hidden file attribute.
/S Processes files in all directories in the specified path.
Attrib http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
Sets or clears extended CTRL+C checking.
BREAK [ON | OFF]
Type BREAK without a parameter to display the current BREAK setting.
Break http://home7.inet.tele.dk/batfiles/msdos7
——————————————————————————–
Buffers DOS Command
Buffers http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
Calls one batch program from another.
CALL [drive:][path]filename [batch-parameters]
batch-parameters Specifies any command-line information required by the batch program.
Call http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
Displays the name of or changes the current directory
CHDIR [drive:] [path]
CHDIR[..]
CD [drive:] [path]
CD[..]
.. Specifies that you want to change to the parent directory.
Type CD drive: to display the current directory in the specified drive.
Type CD without parameters to display the current drive and directory.
CD/ChDir http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
Displays or sets the active code page number
CHCP [nnn]
nnn Specifies a code page number.
Type CHCP without a parameter to display the active code page number.
CHCP http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
CHKDSK [drive:] [ [path] filename] [/F] [/V]
[drive:][path] Specifies the drive and directory to check.
filename Specifies the file(s) to check for fragmentation.
/F Fixes errors on the disk.
/V Displays the full path and name of every file on the disk.
Type CHKDSK without parameters to check the current disk.
Instead of using CHKDSK, try using SCANDISK. SCANDISK can reliably detect
and fix a much wider range of disk problems.
CHKDSK http://home7.inet.tele.dk/batfiles/msdos7/
How to Run the CHKDSK /F Command on a Shared Cluster Disk
http://support.microsoft.com/?kbid=176970 (NT4/W2000 9/23/2003)
Description of Enhanced Chkdsk Tools in Windows 2000
http://support.microsoft.com/?kbid=218461 (5/14/2003)
——————————————————————————–
Waits for the user to choose one of a set of choices.
CHOICE [/C[:]choices] [/N] [/S] [/T[:]c,nn] [text]
/C[:]choices Specifies allowable keys. Default is YN
/N Do not display choices and ? at end of prompt string.
/S Treat choice keys as case sensitive.
/T[:]c,nn Default choice to c after nn seconds
text Prompt string to display
ERRORLEVEL is set to offset of key user presses in choices.
CHOICE http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
Clears the screen
CLS
——————————————————————————–
Starts a new copy of the Windows Command Interpreter.
COMMAND [ [drive:] path] [device] [/E:nnnnn] [/L:nnnn] [/U:nnn] [/P] [/MSG]
[/LOW] [/Y [/ [C|K] command] ]
[drive:]path Specifies the directory containing COMMAND.COM.
device Specifies the device to use for command input and output.
/E:nnnnn Sets the initial environment size to nnnnn bytes.
(nnnnn should be between 256 and 32,768).
/L:nnnn Specifies internal buffers length (requires /P as well).
(nnnn should be between 128 and 1,024).
/U:nnn Specifies the input buffer length (requires /P as well).
(nnn should be between 128 and 255).
/P Makes the new Command Interpreter permanent (can’t exit).
/MSG Stores all error messages in memory (requires /P as well).
/LOW Forces COMMAND to keep its resident data in low memory.
/Y Steps through the batch program specified by /C or /K.
/C command Executes the specified command and returns.
/K command Executes the specified command and continues running.
Command http://home7.inet.tele.dk/batfiles/msdos7/
HIDDEN PARAMETERS http://members.aol.com/axcel216/secrets.htm#COMMAND
——————————————————————————–
CONFIG.SYS
Config.sys (Command)
The Windows 98 Config.txt File. Find out how to call the various commands.
http://support.microsoft.com/?kbid=232557 (W98 11/21/2000)
Understanding the Settings in the Windows ME Config.sys File
http://support.microsoft.com/?kbid=274646 (ME 10/22/2002)
——————————————————————————–
Copies one or more files to another location.
COPY [/A | /B] source [/A | /B] [+ source [/A | /B] [+ ...] ] [destination
[/A | /B] ] [/V] [/Y | /-Y]
source Specifies the file or files to be copied.
/A Indicates an ASCII text file.
/B Indicates a binary file.
destination Specifies the directory and/or filename for the new file(s).
/V Verifies that new files are written correctly.
/Y Suppresses prompting to confirm you want to overwrite an
existing destination file.
/-Y Causes prompting to confirm you want to overwrite an
existing destination file.
The switch /Y may be preset in the COPYCMD environment variable.
This may be overridden with /-Y on the command line
To append files, specify a single file for destination, but multiple files
for source (using wildcards or file1+file2+file3 format).
Copy http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
Changes the terminal device used to control your system.
CTTY device
device The terminal device you want to use, such as COM1.
CTTY http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
COUNTRY DOS Command
COUNTRY “http://home7.inet.tele.dk/batfiles/msdos7/”
——————————————————————————–
Displays or sets the date.
DATE [date]
Type DATE without parameters to display the current date setting and a prompt for a new one.
Press ENTER to keep the same date.
DATE http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
DBLSPACE DOS Command
DBLSPACE.SYS http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
Runs Debug, a program testing and editing tool
DEBUG [[drive:][path]filename [testfile-parameters]]
[drive:][path]filename Specifies the file you want to test.
testfile-parameters Specifies command-line information required by
the file you want to test.
After Debug starts, type ? to display a list of debugging commands.
Debug http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
Deletes one or more files
DEL [drive:] [path] filename [/P]
ERASE [drive:] [path] filename [/P]
[drive:] [path] filename Specifies the file(s) to delete. Specify multiple
files by using wildcards.
/P Prompts for confirmation before deleting each file.
DEL http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
Deletes a directory and all the sub-directories and all files in it
To delete one or more files and directories: DELTREE [/Y] [drive:] path [ [drive:] path [...] ]
Y/ Suppresses prompting to confirm you want to delete the sub-directory.
[drive:]path Specifies the name of the directory you want to delete.
Use DELTREE cautiously. Every file and sub-directory within the
specified directory will be deleted.
DELTREE Command Does Not Remove DIR000 Directory
The MS-DOS DELTREE command does not remove directories named DIR000 where x is an integer number. For example, the DELTREE command does not remove a directory called DIR0001.
http://support.microsoft.com/?kbid=126572 (11/21/1999)
DelTree http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
DEVICE DOS Command
DEVICE http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
Displays a list of files and sub-directories in a directory
DIR [drive:] [path] [filename] [/P] [/W] [/A[ [:] attributes] ]
[/O [ [:]sortorder] ] [/S] [/B] [/L] [/V]
[drive:][path][filename]
Specifies drive, directory, and/or files to list.
(Could be enhanced file specification or multiple filespecs.)
/P Pauses after each screenful of information.
/W Uses wide list format.
/A Displays files with specified attributes.
attributes D Directories R Read-only files
H Hidden files A Files ready for archiving
S System files – Prefix meaning not
/O List by files in sorted order.
sortorder N By name (alphabetic) S By size (smallest first)
E By extension (alphabetic) D By date & time (earliest first)
G Group directories first – Prefix to reverse order
A By Last Access Date (earliest first)
/S Displays files in specified directory and all sub-directories.
/B Uses bare format (no heading information or summary).
/L Uses lower case.
/V Verbose mode.
Switches may be preset in the DIRCMD environment variable. Override
preset switches by pre-fixing any switch with – (hyphen) for example, /-W.
Additional information : DIR http://home7.inet.tele.dk/batfiles/msdos7/
Computer Hangs When Using the DIR Command in DFS Shared Folders
When you use the DIR command from a command prompt on a Windows 95 Distributed File System (DFS) client to view the contents of a DFS shared network folder on a Windows NT server, your computer may stop responding (hang).
http://support.microsoft.com/?kbid=181087 (W95/NT4 5/14/2003)
——————————————————————————–
Copies the contents of one floppy disk to another
DISKCOPY [drive1: [drive2:] ] [/1] [/V] [/M]
/1 Copies only the first side of the disk.
/V Verifies that the information is copied correctly.
/M Force multi-pass copy using memory only.
The two floppy disks must be the same type.
You may specify the same drive for drive1 and drive2.
Additional information :
DiskCopy http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
DISPLAY.SYS DOS Command
DISPLAY.SYS http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
DOS =[high|low] [,umb|,noumb] [,auto|,noauto]
DOS http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
Edits command lines, recalls command lines, and creates macros.
DOSKEY [/switch ...] [macroname=[text] ]
/BUFSIZE:size Sets size of macro and command buffer (default:512)
/ECHO:on|off Enables/disables echo of macro expansions (default:on)
/FILE:file Specifies file containing a list of macros
/HISTORY Displays all commands stored in memory
/INSERT Inserts new characters into line when typing
/KEYSIZE:size Sets size of keyboard type-ahead buffer (default:15)
/LINE:size Sets maximum size of line edit buffer (default:128)
/MACROS Displays all DOSKey macros
/OVERSTRIKE Overwrites new characters onto line when typing (default)
/REINSTALL Installs a new copy of DOSKey
macroname Specifies a name for a macro you create
text Specifies commands you want to assign to the macro
UP,DOWN arrows recall commands
Esc clears current command
F7 displays command history
Alt+F7 clears command history
[chars]F8 searches for command beginning with [chars]
F9 selects a command by number
Alt+F10 clears macro definitions
The following are special codes you can use in DOSKey macro definitions:
$T Command separator: allows multiple commands in a macro
$1-$9 Batch parameters: equivalent to %1-%9 in batch programs
$* Symbol replaced by everything following macro name on the command line
Doskey http://home7.inet.tele.dk/batfiles/msdos7/
The /INSERT Option for Doskey Is Turned On by Default
Doskey is a command-line utility for recalling MS-DOS commands, editing command lines, and creating macros. In Windows (Me), Doskey is loaded by default when you start a command session (or window).
http://support.microsoft.com/?kbid=250204 (ME 8/7/2002)
——————————————————————————–
DRIVPARM DOS Command
DRIVPARM http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
DRVSPACE.SYS DOS Command
DRVSPACE.SYS http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
Displays messages, or turns command-echoing on or off
ECHO [ON | OFF]
ECHO [message]
Type ECHO without parameters to display the current echo setting.
ECHO http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
MS-DOS Editor Version 2.0.026.
EDIT [/B] [/H] [/R] [/S] [/] [/?] [file(s) ]
/B – Forces monochrome mode.
/H – Displays the maximum number of lines possible for your hardware.
/R – Load file(s) in read-only mode.
/S – Forces the use of short filenames.
/ – Load binary file(s), wrapping lines to characters wide.
/? – Displays this help screen.
[file] – Specifies initial files(s) to load. Wildcards and multiple
filespecs can be given.
EDIT http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
Turns on or off EMM386 expanded memory support
EMM386 [ON | OFF | AUTO] [W=ON | W=OFF]
ON | OFF | AUTO Activates or suspends EMM386.EXE device driver,
or places it in auto mode.
W=ON | OFF Turns on or off Weitek co-processor support.
Emm386.exe http://home7.inet.tele.dk/batfiles/msdos7/
EMM386 Troubleshooting and Technical Information
http://support.microsoft.com/?kbid=78557 (W95/98 5/12/2003)
Emm386.exe No Longer Loads After Installing Window 98
http://support.microsoft.com/?kbid=187694 (W98 2/6/1999)
Problems with Expanded Memory on Dell Inspiron 7000 Computers
When you try to start an MS-DOS-based program on your Dell Inspiron 7000-series computer, you may receive one of the following error messages:
Cannot Setup EMS Buffer. EMM386 Not Installed – Unable to set page frame base address
http://support.microsoft.com/?kbid=217222 (W98 11/21/2000)
Sound Blaster Live! Error Message After Installing Windows
After you install Windows, you may receive the following error message:
Error: Memory Manager not detected. SB Live! requires EMM386 or similar.
http://support.microsoft.com/?kbid=229186 (W95/98/se 8/6/2002)
HIDDEN PARAMETERS http://members.aol.com/axcel216/secrets.htm#EMM
——————————————————————————–
Deletes one or more files
DEL [drive:] [path] filename [/P]
ERASE [drive:] [path] filename [/P]
[drive:] [path]filename Specifies the file(s) to delete. Specify multiple
files by using wildcards.
/P Prompts for confirmation before deleting each file.
ERASE http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
Quits the COMMAND.COM program (command interpreter)
EXIT
——————————————————————————–
Microsoft (R) Diamond Extraction Tool – Version (16) 1.00.0530
EXTRACT [/Y] [/A] [/D | /E] [/L dir] cabinet [filename ...]
EXTRACT [/Y] source [newname]
EXTRACT [/Y] /C source destination
cabinet – Cabinet file (contains two or more files).
filename – Name of the file to extract from the cabinet.
Wild cards and multiple filenames (separated by
blanks) may be used.
source – Compressed file (a cabinet with only one file).
newname – New filename to give the extracted file.
If not supplied, the original name is used.
/A Process ALL cabinets. Follows cabinet chain
starting in first cabinet mentioned.
/C Copy source file to destination (to copy from DMF disks).
/D Display cabinet directory (use with filename to avoid extract).
/E Extract (use instead of *.* to extract all files).
/L dir Location to place extracted files (default is current directory).
/Y Do not prompt before overwriting an existing file.
EXTRACT http://home7.inet.tele.dk/batfiles/msdos7/
How to Extract Original Compressed Windows Files
This article describes how to extract individual files from compressed cabinet files.
http://support.microsoft.com/?kbid=129605 (W95/98/se/ME 5/27/2003)
How to Extract and Replace a Protected File in Windows Me
This article describes how to use the System Configuration Utility tool in Microsoft Windows ME to extract a file that is protected by the System File Protection feature.
http://support.microsoft.com/?kbid=265371 (ME 7/6/2001)
——————————————————————————–
Compares two files or sets of files and displays the differences between them.
FC [/A] [/C] [/L] [/LBn] [/N] [/T] [/W] [/nnnn] [drive1:] [path1] filename1
[drive2:] [path2] filename2
FC /B [drive1:][path1]filename1 [drive2:][path2]filename2
/A Displays only first and last lines for each set of differences.
/B Performs a binary comparison.
/C Disregards the case of letters.
/L Compares files as ASCII text.
/LBn Sets the maximum consecutive mismatches to the specified number of lines.
/N Displays the line numbers on an ASCII comparison.
/T Does not expand tabs to spaces.
/W Compresses white space (tabs and spaces) for comparison.
/nnnn Specifies the number of consecutive lines that must match after a mismatch.
FC http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
FCBS DOS Command
FCBS http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
Configures a hard disk for use with MS-DOS
FDISK [/STATUS] /X
/STATUS Displays partition information.
/X Ignores extended disk-access support. Use this switch if you
receive disk access or stack overflow messages.
FDISK http://home7.inet.tele.dk/batfiles/msdos7/u-fdisk.html
Undocumented FDISK switches http://www.jacobsen.sdn.dk/fdisk/
FDISK /MBR Rewrites the Master Boot Record
Fdisk has an undocumented parameter called /MBR that causes it to write the master boot record to the hard disk without altering the partition table information.
http://support.microsoft.com/?kbid=69013 (W95/98/ME 5/28/2003)
Fdisk.exe Limits Non-MS-DOS Partition End to 8 GB
This behavior occurs because Fdisk.exe does not use Logical Block Addressing (LBA) when computing partition table information for unknown partition types.
http://support.microsoft.com/?kbid=245213 (W95/98/se 10/16/2002)
FDISK May Not Work When IDE Controller Is Re-balanced
If you are using a docking station that contains a PCI IDE controller and hard disk, you may not be able to run the FDISK utility to view or modify hard disk partition information.
http://support.microsoft.com/?kbid=246387 (W98se 10/16/2002)
How to Use Fdisk Tool and the Format Tool to Partition or Re-partition a Hard Disk
http://support.microsoft.com/?kbid=255867 (W95/98/se/ME 5/12/2003)
Fdisk Does Not Recognize Full Size of Hard Disks Larger than 64 GB
http://support.microsoft.com/?kbid=263044 (W95/98/se 4/22/2003)
HIDDEN PARAMETERS http://members.aol.com/axcel216/secrets.htm#FDISK
——————————————————————————–
FILES DOS Command
FILES http://home7.inet.tele.dk/batfiles/msdos7/
How to Increase Available File Handles for MS-DOS-Based Applications in Windows ME
Instead of the FILES setting, the PerVMFiles setting is used. This setting increases the number of available file handles in each MS-DOS virtual machine (VM) and is implemented by adding the following line to the [386Enh] section of the System.ini file.
http://support.microsoft.com/?kbid=269030 (ME 8/6/2002)
16-Bit Programs Cannot Open More Than 120 Files Simultaneously in Windows Me
A supported fix is now available from Microsoft, but it is only intended to correct the problem described in this article and should be applied only to systems experiencing this specific problem.
http://support.microsoft.com/?kbid=274594 (ME 10/16/2002)
——————————————————————————–
Searches for a text string in a file or files
FIND [/V] [/C] [/N] [/I] “string” [ [drive:] [path] filename [ ...] ]
/V Displays all lines NOT containing the specified string.
/C Displays only the count of lines containing the string.
/N Displays line numbers with the displayed lines.
/I Ignores the case of characters when searching for the string.
“string” Specifies the text string to find.
[drive:][path]filename Specifies a file or files to search.
If a path name is not specified, FIND searches the text typed at the prompt
or piped from another command.
FIND http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
FOR %variable IN (set) DO command [command-parameters]
%variable Specifies a replaceable parameter.
(set) Specifies a set of one or more files. Wildcards may be used.
command Specifies the command to carry out for each file.
command-parameters Specifies parameters or switches for the specified command.
To use the FOR command in a batch program, specify %%variable instead of
%variable.
FOR http://home7.inet.tele.dk/batfiles/msdos7/z-for.html
——————————————————————————–
Formats a disk for use with MS-DOS
FORMAT drive: [/V [:label] ] [/Q] [/F:size] [/B | /S] [/C]
FORMAT drive: [/V [:label] ] [/Q] [/T:tracks /N:sectors] [/B | /S] [/C]
FORMAT drive: [/V [:label] ] [/Q] [/1] [/4] [/B | /S] [/C]
FORMAT drive: [/Q] [/1] [/4] [/8] [/B | /S] [/C]
/V[:label] Specifies the volume label.
/Q Performs a quick format.
/F:size Specifies the size of the floppy disk to format (such
as 160, 180, 320, 360, 720, 1.2, 1.44, 2.8.
/B Allocates space on the formatted disk for system files.
/S Copies system files to the formatted disk.
/T:tracks Specifies the number of tracks per disk side.
/N:sectors Specifies the number of sectors per track.
/1 Formats a single side of a floppy disk.
/4 Formats a 5.25-inch 360K floppy disk in a high-density drive.
/8 Formats eight sectors per track.
/C Tests clusters that are currently marked “bad.”
Format http://home7.inet.tele.dk/batfiles/msdos7/
Err Msg: Invalid Media or Track 0 Bad – Disk Unusable
Invalid media or Track 0 bad – disk unusable. Format terminated.
http://support.microsoft.com/?kbid=196579 (W95/98 12/17/2000)
“FORMAT /S” Command Is Not Supported in Windows Millennium Edition
http://support.microsoft.com/?kbid=254959 (ME 8/7/2002)
HOW TO: Partition and Format a Hard Disk in Windows XP
http://support.microsoft.com/?kbid=313348 (XP 11/5/2003)
HIDDEN PARAMETERS http://members.aol.com/axcel216/secrets.htm#FORMAT
——————————————————————————–
Directs Windows to a labeled line in a batch program
GOTO label
label Specifies a text string used in the batch program as a label.
You type a label on a line by itself, beginning with a colon.
GoTo http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
HIMEM.SYS DOS Command
HIMEM.SYS http://home7.inet.tele.dk/batfiles/msdos7/
HIDDEN PARAMETERS http://members.aol.com/axcel216/secrets.htm#HIMEM
——————————————————————————–
Performs conditional processing in batch programs
IF [NOT] ERRORLEVEL number command
IF [NOT] string1==string2 command
IF [NOT] EXIST filename command
NOT Specifies that Windows should carry out the command only
if the condition is false.
ERRORLEVEL number Specifies a true condition if the last program run returned
an exit code equal to or greater than the number specified.
command Specifies the command to carry out if the condition is met.
string1==string2 Specifies a true condition if the specified text strings match.
EXIST filename Specifies a true condition if the specified filename exists.
IF http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
INSTALL DOS Command
INSTALL http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
Configures a keyboard for a specific language
KEYB [xx [,[yyy] [,[drive:] [path] filename] ] ] [/E] [/ID:nnn]
xx Specifies a two-letter keyboard code.
yyy Specifies the code page for the character set.
[drive:][path]filename Specifies the keyboard definition file.
/E Specifies that an enhanced keyboard is installed.
/ID:nnn Specifies the keyboard in use.
Keyboard Command Does Not Work in Command Prompt
The Windows Millennium command prompt does not support the keyb command.
http://support.microsoft.com/?kbid=261417 (ME 8/7/2002)
——————————————————————————–
Creates, changes, or deletes the volume label of a disk
LABEL [drive:][label]
Label http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
LASTDRIVE DOS Command
LASTDRIVE http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
Loads a program into the upper memory area
LH or LOADHIGH [drive:] [path] filename [parameters]
LH or LOADHIGH [/L:region1 [,minsize1] [;region2 [,minsize2]…] [/S] ]
[drive:][path]filename [parameters]
/L:region1[,minsize1][;region2[,minsize2]]…
Specifies the region(s) of memory into which to load
the program. Region1 specifies the number of the first
memory region; minsize1 specifies the minimum size, if
any, for region1. Region2 and minsize2 specify the
number and minimum size of the second region, if any.
You can specify as many regions as you want.
/S Shrinks a UMB to its minimum size while the program is loading.
[drive:] [path] filename Specifies the location and name of the program.
——————————————————————————–
LOCK DOS Command
LOCK http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
Creates a directory
MKDIR [drive:]path
MD [drive:]path
MD http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
Displays the amount of used and free memory in your system
MEM [/CLASSIFY | /DEBUG | /FREE | /MODULE modulename] [/PAGE]
/CLASSIFY or /C Classifies programs by memory usage. Lists the size of
programs, provides a summary of memory in use, and lists
largest memory block available.
/DEBUG or /D Displays status of all modules in memory, internal drivers,
and other information.
/FREE or /F Displays information about the amount of free memory left
in both conventional and upper memory.
/MODULE or /M Displays a detailed listing of a module’s memory use.
This option must be followed by the name of a module,
optionally separated from /M by a colon.
/PAGE or /P Pauses after each screenful of information.
MEM http://home7.inet.tele.dk/batfiles/msdos7/
MEM Command Reports Only 64 MB Extended Memory in MS-DOS Window
http://support.microsoft.com/?kbid=239514 (W95/98/se 7/28/2001)
HIDDEN PARAMETERS http://members.aol.com/axcel216/secrets.htm#MEM
——————————————————————————–
MODE Configures system devices
Printer port: MODE LPTn[:] [COLS=c] [LINES=l] [RETRY=r]
Serial port: MODE COMm[:] [BAUD=b] [PARITY=p] [DATA=d] [STOP=s] [RETRY=r]
Device Status: MODE [device] [/STATUS]
Redirect printing:MODE LPTn[:]=COMm[:]
Prepare code page:MODE device CP PREPARE=((yyy[...]) [drive:][path]filename)
Select code page: MODE device CP SELECT=yyy
Refresh code page:MODE device CP REFRESH
Code page status: MODE device CP [/STATUS]
Display mode: MODE [display-adapter][,n]
MODE CON[:] [COLS=c] [LINES=n]
Typematic rate: MODE CON[:] [RATE=r DELAY=d]
Mode http://home7.inet.tele.dk/batfiles/msdos7/
Codepage Support Setup Information
http://support.microsoft.com/?kbid=60080 (5/12/2003)
——————————————————————————–
Displays output one screen at a time
MORE [drive:] [path] filename
MORE [drive:] [path] filename
command-name | MORE [drive:] [path] [filename]
[drive:][path]filename Specifies file(s) to display one screen at a time
command-name Specifies a command whose output will be displayed.
More http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
Moves files and renames files and directories
To move one or more files:
MOVE [/Y | /-Y] [drive:] [path] filename1 [,...] destination
To rename a directory:
MOVE [/Y | /-Y] [drive:] [path] dirname1 dirname2
[drive:] [path] filename1 Specifies the location and name of the file
or files you want to move.
destination Specifies the new location of the file. Destination
can consist of a drive letter and colon, a directory
name, or a combination. If you are moving only one
file, you can also include a filename if you want
to rename the file when you move it.
[drive:] [path] dirname1 Specifies the directory you want to rename.
dirname2 Specifies the new name of the directory.
/Y Suppresses prompting to confirm creation of a directory
or overwriting of the destination.
/-Y Causes prompting to confirm creation of a directory or
overwriting of the destination.
The switch /Y may be present in the COPYCMD environment variable.
This may be overridden with /-Y on the command line.
Move http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
MSCDEXLoads CD ROM Drivers
usage: MSCDEX [/E/K/S/V] [/D: ... ] [/L:] [/M:]
Mscdex http://home7.inet.tele.dk/batfiles/msdos7/
Command-Line Switches for MSCDEX.EXE
http://support.microsoft.com/?kbid=87165 (W95/98/ME 5/28/2003)
——————————————————————————–
Loads country-specific information
NLSFUNC [[drive:][path]filename]
[drive:] [path] filename Specifies the file containing country-specific information.
NlsFunc http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
NUMLOCK DOS Command
Additional information :
NUMLOCK http://home7.inet.tele.dk/batfiles/msdos7/
NUM LOCK Not Synchronized When Using ALT+TAB in Terminal Server Client
The NUM LOCK keyboard indicator may not be synchronized in Windows 95-based or Windows 98-based Terminal Server client sessions. For example, you not be able to type numbers on the numeric keypad even though the NUM LOCK light (or indicator) is on.
http://support.microsoft.com/?kbid=258070 (W95/98/se/NT4/W2000 12/4/2003)
——————————————————————————–
Displays or sets a search path for executable files
PATH [ [drive:] path [;...] ]
PATH ;
Type PATH ; to clear all search-path settings and direct Windows to search
only in the current directory.
Type PATH without parameters to display the current path.
Path http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
Suspends processing of a batch program and displays the message:
Press any key to continue..
PAUSE
Pause http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
Changes the Windows command prompt
PROMPT [text]
text Specifies a new command prompt.
Prompt can be made up of normal characters and the following special codes:
$Q = (equal sign)
$$ $ (dollar sign)
$T Current time
$D Current date
$P Current drive and path
$V Windows version number
$N Current drive
$G > (greater-than sign)
$L < (less-than sign)
$B | (pipe)
$H Backspace (erases previous character)
$E Escape code (ASCII code 27)
$_ Carriage return and linefeed
Type PROMPT without parameters to reset the prompt to the default setting.
Prompt http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
RAMDRIVE DOS Command
Additional information :
RAMDRIVE http://home7.inet.tele.dk/batfiles/msdos7/
Windows 95/98 RAM Disk Software
RamDisk98 is a Windows port driver that emulates as fully as possible the low-level functionality of a hard disk (up to 2GB!) or a 1.44MB or 2.88MB floppy drive. RamDisk98 supports much larger disks than Microsoft’s ramdrive.sys (which is limited to 32MB) and the RamDisk98 drive can be compressed using Windows DriveSpace. The user can select the drive letter for the RAM disk for either floppy or hard disk emulation modes. New Version 1.2! RamDisk98 is Windows Me Compatible!
http://www.jlajoie.com/ramdsk98/
Unable to Load Ramdrive.sys in Windows Millennium Edition
RAM drives are not supported in Windows Me. To view a RAM drive, you must start the computer by using a Windows Me Emergency Boot Disk (EBD).
http://support.microsoft.com/?kbid=278620 (ME5/14/2001)
——————————————————————————–
Removes (deletes) a directory
RMDIR [drive:] path
RD [drive:] path
RD http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
Records comments (remarks) in a batch file or CONFIG.SYS
REM [comment]
REM http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
Renames a file/directory or files/directories
RENAME [drive:] [path] [directoryname1 | filename1] [directoryname2 | filename2]
REN [drive:] [path] [directoryname1 | filename1] [directoryname2 | filename2]
Note that you cannot specify a new drive or path for your destination.
REN http://home7.inet.tele.dk/batfiles/msdos7/
UTILITY: CKRename
CKRename is a handy utility you can use to perform batch file renaming operations.
http://www.musicsucks.com/CKSoft/CKRename/index.htm
——————————————————————————–
Displays, sets, or removes Windows environment variables
SET [variable=[string]]
variable Specifies the environment-variable name.
string Specifies a series of characters to assign to the variable.
Type SET without parameters to display the current environment variables.
SET http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
Sets the MS-DOS version number that Windows reports to a program
Display current version table: SETVER [drive:path]
Add entry: SETVER [drive:path] filename n.nn
Delete entry: SETVER [drive:path] filename /DELETE [/QUIET]
[drive:path] Specifies location of the SETVER.EXE file.
filename Specifies the filename of the program.
n.nn Specifies the MS-DOS version to be reported to the program.
/DELETE or /D Deletes the version-table entry for the specified program.
/QUIET or /Q Hides the message typically displayed during deletion of
version-table entry.
SetVer http://home7.inet.tele.dk/batfiles/msdos7/
Setver.exe Is Not Loadable in Windows Millennium Edition
http://support.microsoft.com/?kbid=250238 (ME 1/30/2001)
——————————————————————————–
SHARE DOS Command
SHARE http://home7.inet.tele.dk/batfiles/msdos7/
Share.exe Is Not Supported in Windows 95 OSR2, Windows 98 or ME
http://support.microsoft.com/?kbid=161619 (W95/98/ME 5/28/2003)
——————————————————————————–
SHELL DOS Command
SHELL http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
SHIFT DOS Command
SHIFT http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
Installs and configures the SMARTDrive disk-caching utility
SMARTDRV [/X] [ [drive [+|-] ]…] [/U] [/C | /R] [/F | /N] [/L] [/V | /Q | /S]
[InitCacheSize [WinCacheSize] ] [/E:ElementSize] [/B:BufferSize]
/X Disables write-behind caching for all drives.
drive Sets caching options on specific drive(s). The specified
drive(s) will have write-caching disabled unless you add +.
+ Enables write-behind caching for the specified drive.
- Disables all caching for the specified drive.
/U Do not load CD-ROM caching module.
/C Writes all information currently in write-cache to hard disk.
/R Clears the cache and restarts SMARTDrive.
/F Writes cached data before command prompt returns (default).
/N Doesn’t write cached data before command prompt returns.
/L Prevents SMARTDrive from loading itself into upper memory.
/V Displays SMARTDrive status messages when loading.
/Q Does not display status information.
/S Displays additional information about SMARTDrive’s status.
InitCacheSize Specifies XMS memory (KB) for the cache.
WinCacheSize Specifies XMS memory (KB) for the cache with Windows.
/E:ElementSize Specifies how many bytes of information to move at one time.
/B:BufferSize Specifies the size of the read-ahead buffer.
——————————————————————————–
Sorts input and writes results to the screen, a file, or another
device
SORT [/R] [/+n] [ [drive1:] [path1] filename1] [> [drive2:] [path2] filename2]
[command |] SORT [/R] [/+n] [> [drive2:] [path2] filename2]
/R Reverses the sort order; that is, sorts Z to A,
then 9 to 0.
/+n Sorts the file according to characters in
column n.
[drive1:][path1]filename1 Specifies file(s) to be sorted
[drive2:][path2]filename2 Specifies a file where the sorted input is to be
stored.
command Specifies a command whose output is to be sorted.
SORT http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
START DOS Command
Additional information :
START http://home7.inet.tele.dk/batfiles/msdos7/
How to Start Programs Sequentially in Windows
To start programs sequentially in Windows, create a text file containing the following lines:
and save the text file with a .bat extension.
start /w <program1.exe>
start /w <program2.exe>
http://support.microsoft.com/?kbid=198044 (W95/98/se 1/1/2001)
——————————————————————————–
Associates a path with a drive letter
SUBST [drive1: [drive2:] path]
SUBST drive1: /D
drive1: Specifies a virtual drive to which you want to assign a path.
[drive2:]path Specifies a physical drive and path you want to assign to
a virtual drive.
/D Deletes a substituted (virtual) drive.
Type SUBST with no parameters to display a list of current virtual drives.
SUBST http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
SWITCHES DOS Command
Additional information :
SWITCHES http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
SYS DOS Command
SYS http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
Displays or sets the system time
TIME [time]
Type TIME with no parameters to display the current time setting and a prompt
for a new one. Press ENTER to keep the same time.
Time http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
TRUENAME DOS Command
TRUENAME http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
Displays the contents of text files
TYPE [drive:][path]filename
Type http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
UNLOCK DOS Command
UNLOCK http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
VER DOS Command
At the DOS prompt type VER and press ENTER. You should see something like this.
MS-DOS Version 6.0
——————————————————————————–
VERIFY DOS Command
This command allows you to control whether of not DOS verifies the data it writes to a disk.
——————————————————————————–
Displays the disk volume label and serial number, if they exist
VOL [drive:]
Additional information :
VOL http://home7.inet.tele.dk/batfiles/msdos7/
——————————————————————————–
Copies files and directory trees
XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/W] [/C] [/I] [/Q] [/F] [/L] [/H] [/R] [/T] [/U] [/K] [/N]
source Specifies the file(s) to copy.
destination Specifies the location and/or name of new files.
/A Copies files with the archive attribute set,
doesn’t change the attribute.
/M Copies files with the archive attribute set,
turns off the archive attribute.
/D:date Copies files changed on or after the specified date.
If no date is given, copies only those files whose
source time is newer than the destination time.
/P Prompts you before creating each destination file.
/S Copies directories and subdirectories except empty ones.
/E Copies directories and subdirectories, including empty ones.
Same as /S /E. May be used to modify /T.
/W Prompts you to press a key before copying.
/C Continues copying even if errors occur.
/I If destination does not exist and copying more than one file,
assumes that destination must be a directory.
/Q Does not display file names while copying.
/F Displays full source and destination file names while copying.
/L Displays files that would be copied.
/H Copies hidden and system files also.
/R Overwrites read-only files.
/T Creates directory structure, but does not copy files. Does not
include empty directories or subdirectories. /T /E includes
empty directories and subdirectories.
/U Updates the files that already exist in destination.
/K Copies attributes. Normal Xcopy will reset read-only attributes.
/Y Overwrites existing files without prompting.
/-Y Prompts you before overwriting existing files.
/N Copy using the generated short names.