Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Tech Tips & Tricks
Tag Cloud
access audio blue screen boot bsod connection crash dell desktop driver dvd email error excel excel 2003 firefox hard drive hardware hdmi hijackthis internet keyboard laptop malware monitor motherboard network networking outlook problem ram recovery router screen slow sound spyware tdlwsp.dll trojan upgrade vba video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > General Technology > Tech Tips & Tricks >
All Of The MS-DOS Commands

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
ferrija1's Avatar
Computer Specs
Distinguished Member with 9,752 posts.
 
Join Date: Apr 2006
Location: Pittsburgh, PA
Experience: Mac Addict
12-Apr-2006, 02:19 PM #1
130+++ MS-DOS Commands!!!!
I looked thru tons of web sites and got a list of what think are all (or at least enough) MS-DOS commands


If you know any more please check the list then post them. If there are any errors post it in the commands or you want to yell at me for alphabetical stuff feel free to post it.
Getting into MS-DOS

To get into MS-DOS mode before Windows starts you usually press a button like <F1> or <F2> or <F12> or the <Del> key to get to startup opitions where is usually has selections like "Start Windows Normally", "Boot from other device", "Start in MS-DOS Mode", "Start in Safe Mode" ect. you want to highlight "MS-DOS Mode" and press <Enter> . If you do not know how to get into MS-DOS post something here or contact your computer manufacturer.

To get into MS-DOS while Windows is running go to Start>All Programs>Acessories>Command Prompt

~~~Note that some commands, like ones that completely erase your HD, must be run when Windows is not.

THE LIST OF MS-DOS COMMANDS
COMMAND DESCRIPTION
ANSI.SYS Defines functions that change display graphics, control cursor movement, and reassign keys.
APPEND Causes MS-DOS to look in other directories when editing a file or running a command.
ARP Displays, adds, and removes arp information from network devices.
ASSIGN Assign a drive letter to an alternate letter.
ASSOC View the file associations.
AT Schedule a time to execute commands or programs.
ATMADM Lists connections and addresses seen by Windows ATM call manager.
ATTRIB Display and change file attributes.
BATCH Recovery console command that executes a series of commands in a file.
BOOTCFG Recovery console command that allows a user to view, modify, and rebuild the boot.ini
BREAK Enable / disable CTRL + C feature.
CACLS View and modify file ACL's.
CALL Calls a batch file from another batch file.
CD Changes directories.
CHCP Supplement the International keyboard and character set information.
CHDIR Changes directories.
CHKDSK Check the hard disk drive running FAT for errors.
CHKNTFS Check the hard disk drive running NTFS for errors.
CHOICE Specify a listing of multiple options within a batch file.
CLS Clears the screen.
CMD Opens the command interpreter.
COLOR Easily change the foreground and background color of the MS-DOS window.
COMMAND Opens the command interpreter.
COMP Compares files.
COMPACT Compresses and uncompress files.
CONTROL Open control panel icons from the MS-DOS prompt.
CONVERT Convert FAT to NTFS.
COPY Copy one or more files to an alternate location.
CTTY Change the computers input/output devices.
DATE View or change the systems date.
DEBUG Debug utility to create assembly programs to modify hardware settings.
DEFRAG Re-arrange the hard disk drive to help with loading programs.
DEL Deletes one or more files.
DELETE Recovery console command that deletes a file.
DELTREE Deletes one or more files and/or directories.
DIR List the contents of one or more directory.
DISABLE Recovery console command that disables Windows system services or drivers.
DISKCOMP Compare a disk with another disk.
DISKCOPY Copy the contents of one disk and place them on another disk.
DOSKEY Command to view and execute commands that have been run in the past.
DOSSHELL A GUI to help with early MS-DOS users.
DRIVPARM Enables overwrite of original device drivers.
ECHO Displays messages and enables and disables echo.
EDIT View and edit files.
EDLIN View and edit files.
EMM386 Load extended Memory Manager.
ENABLE Recovery console command to enable a disable service or driver.
ENDLOCAL Stops the localization of the environment changes enabled by the setlocal command.
ERASE Erase files from computer.
EXIT Exit from the command interpreter.
EXPAND Expand a Microsoft Windows file back to it's original format.
EXTRACT Extract files from the Microsoft Windows cabinets.
FASTHELP Displays a listing of MS-DOS commands and information about them. <<<<<<<<<<<
FC Compare files.
FDISK Utility used to create partitions on the hard disk drive.
FIND Search for text within a file.
FINDSTR Searches for a string of text within a file.
FIXBOOT Writes a new boot sector.
FIXMBR Writes a new boot record to a disk drive.
FOR Boolean used in batch files.
FORMAT Command to erase and prepare a disk drive.
FTP Command to connect and operate on a FTP server.
FTYPE Displays or modifies file types used in file extension associations.
GOTO Moves a batch file to a specific label or location.
GRAFTABL Show extended characters in graphics mode.
HELP Display a listing of commands and brief explanation. <<<<<<<<<<<<<<<<
IF Allows for batch files to perform conditional processing.
IFSHLP.SYS 32-bit file manager.
IPCONFIG Network command to view network adapter settings and assigned values.
KEYB Change layout of keyboard.
LABEL Change the label of a disk drive.
LH Load a device driver in to high memory.
LISTSVC Recovery console command that displays the services and drivers.
LOADFIX Load a program above the first 64k.
LOADHIGH Load a device driver in to high memory.
LOCK Lock the hard disk drive.
LOGON Recovery console command to list installations and enable administrator login.
MAP Displays the device name of a drive.
MD Command to create a new directory.
MEM Display memory on system.
MKDIR Command to create a new directory.
MODE Modify the port or display settings.
MORE Display one page at a time.
MOVE Move one or more files from one directory to another directory.
MSAV Early Microsoft Virus scanner.
MSD Diagnostics utility.
MSCDEX Utility used to load and provide access to the CD-ROM.
NBTSTAT Displays protocol statistics and current TCP/IP connections using NBT
NET Update, fix, or view the network or network settings
NETSH Configure dynamic and static network information from MS-DOS.
NETSTAT Display the TCP/IP network protocol statistics and information.
NLSFUNC Load country specific information.
NSLOOKUP Look up an IP address of a domain or host on a network.
PATH View and modify the computers path location.
PATHPING View and locate locations of network latency.
PAUSE Command used in batch files to stop the processing of a command.
PING Test / send information to another network computer or network device.
POPD Changes to the directory or network path stored by the pushd command.
POWER Conserve power with computer portables.
PRINT Prints data to a printer port.
PROMPT View and change the MS-DOS prompt.
PUSHD Stores a directory or network path in memory so it can be returned to at any time.
QBASIC Open the QBasic.
RD Removes an empty directory.
RECOVER Recovers readable information from a bad or defective disk.
REM Records comments (remarks) in batch files or CONFIG.SYS.
REN Renames a file or directory.
RENAME Renames a file or directory.
REPLACE Replaces files.
RMDIR Removes an empty directory.
ROUTE View and configure windows network route tables.
RUNAS Enables a user to execute a program on another computer.
SCANDISK Run the scandisk utility.
SCANREG Scan registry and recover registry from errors.
SET Change one variable or string to another.
SETLOCAL Enables local environments to be changed without affecting anything else.
SETVER Change MS-DOS version to trick older MS-DOS programs.
SHARE Installs support for file sharing and locking capabilities.
SHIFT Changes the position of replaceable parameters in a batch program.
SHUTDOWN Shutdown the computer from the MS-DOS prompt.
SMARTDRV Create a disk cache in conventional memory or extended memory.
SORT Sorts the input and displays the output to the screen.
START Start a separate window in Windows from the MS-DOS prompt.
SUBST Substitute a folder on your computer for another drive letter.
SWITCHES Remove add functions from MS-DOS.
SYS Transfer system files to disk drive.
TELNET Telnet to another computer / device from the prompt.
TIME View or modify the system time.
TITLE Change the title of their MS-DOS window.
TRACERT Visually view a network packets route across a network.
TREE View a visual tree of the hard disk drive.
TYPE Display the contents of a file.
UNDELETE Undelete a file that has been deleted.
UNFORMAT Unformat a hard disk drive.
UNLOCK Unlock a disk drive.
VER Display the version information.
VERIFY Enables or disables the feature to determine if files have been written properly.
VOL Displays the volume information about the designated drive.
XCOPY Copy multiple files, directories, and/or drives from one location to another.

If you know any more please check the list then post them. If there are any errors post it in the commands or you want to yell at me for alphabetical stuff feel free to post it.

Last edited by ferrija1 : 12-Apr-2006 08:00 PM.
bassetman's Avatar
Computer Specs
Moderator - Gone, but never forgotten with 48,307 posts.
 
Join Date: Jun 2001
Location: Great White North (WI)
Experience: Getting somewhere I hope
12-Apr-2006, 02:27 PM #2
stantley's Avatar
Computer Specs
Distinguished Member with 5,235 posts.
 
Join Date: May 2005
Location: Super Bowl & Stanley Cup
Experience: ,The Jimi Hendrix
12-Apr-2006, 02:33 PM #3
Maybe you ran out of gas when you got to the R's.

RECOVER Recovers readable information from a bad or defective disk.
REM Records comments (remarks) in batch files or CONFIG.SYS.
REPLACE Replaces files.
Kenny94's Avatar
Distinguished Member with 2,158 posts.
 
Join Date: Dec 2004
Location: S.C
Experience: Malware Fighter
12-Apr-2006, 03:18 PM #4
Quote:
Originally Posted by ferrija1
I looked thru tons of web sites and got a list of what think are all (or at least enough) MS-DOS commands
Thanks ferrija1! Heck, I always forget some of the MS-DOS commands. Now I know were to go....


Quote:
Originally Posted by stantley
Maybe you ran out of gas when you got to the R's.
ferrija1's Avatar
Computer Specs
Distinguished Member with 9,752 posts.
 
Join Date: Apr 2006
Location: Pittsburgh, PA
Experience: Mac Addict
12-Apr-2006, 07:49 PM #5
hey thanks stantley I dont know them all so I'm glad people are telling me more I will add them.
stantley's Avatar
Computer Specs
Distinguished Member with 5,235 posts.
 
Join Date: May 2005
Location: Super Bowl & Stanley Cup
Experience: ,The Jimi Hendrix
13-Apr-2006, 09:25 AM #6
You're welcome, and thank you for posting that list. Sometimes those old dos commands come in mighty handy.
ferrija1's Avatar
Computer Specs
Distinguished Member with 9,752 posts.
 
Join Date: Apr 2006
Location: Pittsburgh, PA
Experience: Mac Addict
13-Apr-2006, 09:30 AM #7
yeah
loismustdie's Avatar
Junior Member with 13 posts.
 
Join Date: Apr 2006
Location: Merry ol England
Experience: Advanced
13-Apr-2006, 10:34 AM #8
thanks, that will cone in handy
MNG0304's Avatar
Computer Specs
Senior Member with 643 posts.
 
Join Date: Mar 2006
Location: Kalifornia
Experience: Tinker
13-Apr-2006, 02:22 PM #9
While you're at it here's a great reference for creating DOS batch files

Link

And

Other Link
dr911's Avatar
Senior Member with 549 posts.
 
Join Date: Sep 2005
Location: Northern Arizona
Experience: Intermediate
13-Apr-2006, 04:42 PM #10
Hey ferrija1,

Thanks for the info . I'll be saving this. !!!
bassetman's Avatar
Computer Specs
Moderator - Gone, but never forgotten with 48,307 posts.
 
Join Date: Jun 2001
Location: Great White North (WI)
Experience: Getting somewhere I hope
14-Apr-2006, 03:17 PM #11
Quote:
Originally Posted by MNG0304
While you're at it here's a great reference for creating DOS batch files

Link

And

Other Link

Thanks, I wrote a couple of batch files awhile ago and could have used this!
valis's Avatar
Computer Specs
Community Moderator with 32,942 posts.
 
Join Date: Sep 2004
Location: Texas
Experience: cp/m -->
14-Apr-2006, 03:30 PM #12
aaaaaaaaaaaand saved. Thanks man, taking the a+ test this weekend.
lotuseclat79's Avatar
Distinguished Member with 14,984 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
18-Apr-2006, 09:44 AM #13
Just a quick comment:

It appears that not all of these commands are supported by every Windows version. For example, ansi.sys is a sytem file on WinXP Pro SP2 in a command prompt windows and is not supported by help or /?. Am I to conclude that this particular command never works in WinXT or later, i.e. command prompt?

Also, are there any commands that are restricted to Administrator only vs user level accounts - or is there no such distinction in MS-DOS, and which version of MS-DOS supports all of these commands?

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
StumpedTechy's Avatar
Computer Specs
Distinguished Member with 7,198 posts.
 
Join Date: Jul 2004
Location: Central Florida
Experience: Advanced
19-Apr-2006, 10:12 AM #14
Quote:
It appears that not all of these commands are supported by every Windows version. For example, ansi.sys is a sytem file on WinXP Pro SP2 in a command prompt windows and is not supported by help or /?. Am I to conclude that this particular command never works in WinXT or later, i.e. command prompt?
You are right not all commands are supported but the main thing to remember is Ansi.sys does not support a help file or a /?. Its actually just like a built in helper file in a way. Here is some more information on ansi.sys.

http://www.computerhope.com/ansisys.htm

Quote:
Also, are there any commands that are restricted to Administrator only vs user level accounts - or is there no such distinction in MS-DOS, and which version of MS-DOS supports all of these commands?
DOS has no distinction of Admininstrator or User as DOS does not contain inherant security (one of the big issues between linux users and Dos lovers back in the day). BUT, and its a biiiiiiggggg BUT, any OS that contains users accounts and security will only run the script based upon the permissions the command prompt is ran on.

There are some exceptions.

Startup and shutdown scripts - Run with Admin rights
Log on and log off scripts - Run with User rights
Manually started scripts - Run with User rights

This is one reason Runas has become popular with scripters
coachdan32's Avatar
Computer Specs
Senior Member with 1,038 posts.
 
Join Date: Nov 2003
Location: Louisville, KY
20-Apr-2006, 10:43 AM #15
Great source of info ferrija1.
Closed Thread Bookmark and Share

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 03:50 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.