DOS and Windows XP

for a full list of XP DOS commands with descriptions - go Here or HERE
for configuration of your XP DOS box - go Here

Unlike Win95 and 98, Windows ME and XP does not first load an MS-DOS operating system, and then run Windows on top of it.  Both WinME and WinXP run pure Windows code, without the DOS sublayer.  However, so many people still use and rely on DOS, that Microsoft left the DOS emulator intact - they did, however, change it quite a bit.  

All versions of Windows can start a "DOS Box" (DOS emulator) by simply running the command prompt.  When a user runs a DOS session within Windows, they are "emulating DOS".  The older versions of Windows could even run older versions of MSDOS.  XP will not run any of the older versions of MS-DOS, and cannot run command.com  -  but it does have it's own version of emulated DOS, which uses the same type of base-operating system.  With XP you use cmd.com  to get to a DOS box  ( Start/Run . . . cmd ).

Win95-98:    Start/Run . . . command

WinNT-2000-XP:    Start/Run . . . cmd

Differences between Win95-98 and XP's Dos Box

Most of the commands are the same as Win98.  We will list the new ones first, then all of them next.

Replaced DOS Commands with XP

Deltree.exe has been replaced with Rmdir.exe  (for details see my rmdir page)- deltree has always been an extremely useful DOS-based utility.  Unfortunately it was not included with WinXP.  You can use rmdir instead (as you are supposed to), OR simply copy deltree into the Windows folder from a Win98 machine.  Of course, "rmdir" has different options and switches than deltree, so if you cannot get your hands on a Win98 copy of "deltree.exe" you can download deltree here

Choice.com has been replaced with Set.exe - choice.com was a critical and extremely useful file for DOS batch commands, because it allows you to receive interactive input from the user "after" the bat file begins running.  Microsoft removed it because it is made to run in a multitasking environment and could cause instability with XP (go figger !!).  Luckily they have a command that does the same thing, the "SET" command.  SET not only can act as the Choice command, but it also sets Environment variables to anything you want.You can type set /? for more a long list of detailed info. Here is a sample batch file using the SET command for three possible user input choices and it is easily editable by you, to do anything you wish.

 

New DOS Commands with XP

bootcfg -View your boot loader settings, such as your default OS and selection timeout, as well as your boot entries and load options.

diskpart -Manages your disk partitions. After you type "diskpart" into your command prompt, your prompt will become "DISKPART." Type a question mark to get a list of possible arguments. Type exit to leave diskpart.

driverquery - Will get you a nice list of your drivers and their properties.

fsutil - This is a handy command. You can do everything from managing your hardlinks to querying the free space in a volume. Type "fsutil" into your command prompt, and you'll see a list of options. I choose "fsinfo" from the list, so I type "fsutil fsinfo" into the prompt. Now I get even more options, but I choose drives by typing "fsutil fsinfo drives." It's fun, it's easy, and you'll get the hang of it. Explore this utility. There are a lot of cool features and hidden twists.

getmac - This gets the MAC (Media Access Control) address.

gpresult - Get the RSoP, user settings, and computer group policy settings.

netsh - A network configuration tool. Type "netsh" to enter the tool, or "netsh /?" to learn more about it. To exit this tool, type "exit" at the "netsh>" prompt.

openfiles - Allows an administrator to display or disconnect open files in XP professional. Type "openfiles /?" for a list of possible parameters.

recover - This command attempts to recover readable information from a damaged disk. Type "recover" to get the syntax.

reg - The console registry tool. Get syntax help when you type "reg" into the prompt. You can export the registry, copy, restore, compare, and more.

schtasks - The administrator can schedule, run, change, or delete tasks on a local or remote machine. Type "schtasks /?" without the quotes for a list of options.

sfc - The system file checker scans protected system files and replaces the ones you (or your applications) hacked beyond repair with the real, official Microsoft versions. Type "sfc" into the command prompt to get a list of options.  use "sfc /scannow" to run a full check of all system files.

shutdown - You can shut down or restart your own computer, or an administrator can shut down or restart a remote computer. Type "shutdown" into your command prompt to see a list of possible arguments.

systeminfo - Basic system configuration information, such as the system type, the processor type, your time zone, your virtual memory settings, and much more.

tasklist - Want to know what's going on behind the scenes? Type "tasklist" into the command prompt, and get a list of current processes.

taskkill - Now that you know what's going on behind the scenes, maybe you want to shut a few of these extraneous tasks down. That's where taskkill comes in. Type "taskkill /?" for a quick lesson in the syntax of the command, then shut down all those random processes. I just killed my MS messenger by typing "taskkill /PID 1680." I got the PID from running tasklist, above.

 

Full Set of DOS Commands with XP

for descriptions - go HERE

Command-line tools must be run at the prompt of the Cmd.exe command interpreter. To open Command Prompt, click Start, click Run, type cmd, and then click OK. To view help at the command-line, at the command prompt, type the following:

CommandName /?

Arp
Assoc
At
Atmadm
Attrib
Batch files
Bootcfg
Break
Cacls
Call
Change
Chcp
Chdir
Chkdsk
Chkntfs
Cipher
Cls
Cmd
Cmstp
Color
Command shell overview
Comp
Compact
Convert
Copy
Cprofile
CScript overview
Date
Defrag
Del
Dir
Diskcomp
Diskcopy
DiskPart
Doskey
Driverquery
Echo
Endlocal
Eventcreate
Eventquery
Eventtriggers
Evntcmd
Exit
Expand
Fc
Filter commands
Find
Findstr
Finger
Flattemp
For
Format
Fsutil
Ftp
Ftp subcommands
Ftype
Getmac
Goto
Gpresult
Gpupdate
Graftabl
Help
Helpctr
Hostname
If
Ipconfig
Ipseccmd
Ipxroute
Irftp
Label
Lodctr
Logman
Lpq
Lpr
Macfile
Mkdir (md)
Mmc
Mode
More
Mountvol
Move
Msiexec
Msinfo32
Nbtstat
Net services overview
Net services commands
Netsh commands (many)
Netstat
Nslookup
Nslookup subcommands
Ntbackup
Ntcmdprompt
Ntsd
Openfiles
Pagefileconfig
Path
Pathping
Pause
Pbadmin
Pentnt
Perfmon
Ping
Popd
Print
Prncnfg
Prndrvr
Prnjobs
Prnmngr
Prnport
Prnqctl
Prompt
Pushd
Query
Rasdial
Rcp
Recover
Redirection operators
Reg
Regsvr32
Relog
Rem
Rename
Replace
Reset session
Rexec
Rmdir
Route
Rsh
Rsm
Runas
Sc
Schtasks
Secedit
Set
Setlocal
Shift
Shutdown
Sort
Start
Subst
Systeminfo
System File Checker (sfc)
Taskkill
Tasklist
Tcmsetup
TCP/IP utilities and services
Telnet commands
Terminal Services commands
Tftp
Time
Title
Tracerpt
Tracert
Tree
Type
Typeperf
Unlodctr
Ver
Verify
Vol
Vssadmin
W32tm
Winnt
Winnt32
WMIC overview
Xcopy