Windows XP Command Prompt Commands

A Complete List of Command Line Commands Available in Windows XP

The Command Prompt in Windows XP provides access to almost 180 commands.

The commands available in Windows XP are typically used to automate tasks, create batch/script files, and perform various kinds of troubleshooting and diagnostics.

Note: Windows XP Command Prompt commands might look and act like MS-DOS commands but they are not MS-DOS commands and the XP Command Prompt is not MS-DOS. I do have a real list of DOS Commands if you're actually using MS-DOS.

Not Using Windows XP? I also have detailed lists of Windows 8 commands, Windows 7 commands, and Windows Vista commands or you can see details on every command ever available in my list of CMD commands or a one-page, detail-free table of the same here.

Below is a complete list of commands available via the Command Prompt in Windows XP:

append - net | netsh - xcopy

01
of 97

Append

The append command can be used by programs to open files in another directory as if they were located in the current directory.

The append command is not available in 64-bit versions of Windows XP.

02
of 97

Arp

The arp command is used to display or change entries in the ARP cache.

03
of 97

Assoc

The assoc command is used to display or change the file type associated with a particular file extension.

04
of 97

The at command is used to schedule commands and other programs to run at a specific date and time. More »

05
of 97

Atmadm

The atmadm command is used to display information related to asynchronous transfer mode (ATM) connections on the system.

06
of 97

The attrib command is used to change the attributes of a single file or a directory. More »

07
of 97

Bootcfg

The bootcfg command is used to build, modify, or view the contents of the boot.ini file, a hidden file that is used to identify in what folder, on which partition, and on which hard drive Windows is located.

08
of 97

Break

The break command sets or clears extended CTRL+C checking on DOS systems.

09
of 97

Cacls

The cacls command is used to display or change access control lists of files.

10
of 97

Call

The call command is used to run a script or batch program from within another script or batch program.

11
of 97

Cd

The cd command is the shorthand version of the chdir command.

12
of 97

Chcp

The chcp command displays or configures the active code page number.
13
of 97

Chdir

The chdir command is used to display the drive letter and folder that you are currently in. Chdir can also be used to change the drive and/or directory that you want to work in.

14
of 97

Chkdsk

The chkdsk command often referred to as check disk, is used to identify and correct certain hard drive errors.

15
of 97

Chkntfs

The chkntfs command is used to configure or display the checking of the disk drive during the Windows boot process.

16
of 97

Cipher

The cipher command shows or changes the encryption status of files and folders on NTFS partitions.
17
of 97

Cls

The cls command clears the screen of all previously entered commands and other text.

18
of 97

Cmd

The cmd command starts a new instance of the command interpreter.

19
of 97

Cmstp

The cmstp command installs or uninstalls a Connection Manager service profile.

20
of 97

Color

The color command is used to change the colors of the text and background within the Command Prompt window.

21
of 97

Command

The command command starts a new instance of the command.com command interpreter.

The command command is not available in 64-bit versions of Windows XP.

22
of 97

Comp

The comp command is used to compare the contents of two files or sets of files.

23
of 97

Compact

The compact command is used to show or change the compression state of files and directories on NTFS partitions.

24
of 97

Convert

The convert command is used to convert FAT or FAT32 formatted volumes to the NTFS format.

25
of 97

Copy

The copy command does simply that - it copies one or more files from one location to another.

26
of 97

Cscript

The cscript command is used to execute scripts via Microsoft Script Host.

The cscript command is most popularly used to manage printers from the command line in Windows XP using scripts like prncnfg.vbs, prndrvr.vbs, prnmngr.vbs, and others.

Other popular scripts include eventquery.vbs and pagefileconfig.vbs.

27
of 97

Date

The date command is used to show or change the current date.

28
of 97

Debug

The debug command starts Debug, a command line application used to test and edit programs.

The debug command is not available in 64-bit versions of Windows XP.

29
of 97

Defrag

The defrag command is used to defragment a drive you specify. The defrag command is the command line version of Microsoft's Disk Defragmenter.

30
of 97

Del

The del command is used to delete one or more files. The del command is the same as the erase command.

31
of 97

Diantz

The diantz command is used to losslessly compress one or more files. The diantz command is sometimes called Cabinet Maker.

The diantz command is the same as the makecab command.

32
of 97

The dir command is used to display a list of files and folders contained inside the folder that you are currently working in. The dir command also displays other important information like the hard drive's serial number, the total number of files listed, their combined size, the total amount of free space left on the drive, and more. More »

33
of 97

Diskcomp

The diskcomp command is used to compare the contents of two floppy disks.

34
of 97

Diskcopy

The diskcopy command is used to copy the entire contents of one floppy disk to another.

35
of 97

Diskpart

The diskpart command is used to create, manage, and delete hard drive partitions.

36
of 97

Diskperf

The diskperf command is used to manage disk performance counters remotely.

37
of 97

Doskey

The doskey command is used to edit command lines, create macros, and recall previously entered commands.

38
of 97

Dosx

The dosx command is used to start DOS Protected Mode Interface (DPMI), a special mode designed to give MS-DOS applications access to more than the normally allowed 640 KB.

The dosx command is not available in 64-bit versions of Windows XP.

The dosx command and DPMI is only available in Windows XP to support older MS-DOS programs.

39
of 97

Driverquery

The driverquery command is used to show a list of all installed drivers.

40
of 97

Echo

The echo command is used to show messages, most commonly from within script or batch files. The echo command can also be used to turn the echoing feature on or off.

41
of 97

Edit

The edit command starts the MS-DOS Editor tool which is used to create and modify text files.

The edit command is not available in 64-bit versions of Windows XP.

42
of 97

Edlin

The edlin command starts the Edlin tool which is used to create and modify text files from the command line.

The edlin command is not available in 64-bit versions of Windows XP.

43
of 97

Endlocal

The endlocal command is used to end the localization of environment changes inside a batch or script file.

44
of 97

Erase

The erase command is used to delete one or more files. The erase command is the same as the del command.

45
of 97

Esentutl

The esentutl command is used to manage Extensible Storage Engine databases.

46
of 97

Eventcreate

The eventcreate command is used to create a custom event in an event log.

47
of 97

Eventtriggers

The eventtriggers command is used to configure and display event triggers.

48
of 97

Exe2bin

The exe2bin command is used to convert a file of the EXE file type (executable file) to a binary file.

The exe2bin command is not available in 64-bit versions of Windows XP.

49
of 97

Exit

The exit command is used to end the Command Prompt session that you're currently working in.
50
of 97

Expand

The expand command is used to extract a single file or a group of files from a compressed file.

The expand command is not available in 64-bit versions of Windows XP.

51
of 97

Extrac32

The extrac32 command is used to extract the files and folders contained in Microsoft Cabinet (CAB) files.

The extrac32 command is actually a CAB extraction program for use by Internet Explorer but can be used to extract any Microsoft Cabinet file. Use the expand command instead of the extrac32 command if possible.

52
of 97

Fastopen

The fastopen command is used to add a program's hard drive location to a special list stored in memory, potentially improving the program's launch time by removing the need for MS-DOS to locate the application on the drive.

The fastopen command is not available in 64-bit versions of Windows XP and is only available in 32-bit versions to support older MS-DOS files.

53
of 97

Fc

The fc command is used to compare two individual or sets of files and then show the differences between them.

54
of 97

Find

The find command is used to search for a specified text string in one or more files.

55
of 97

Findstr

The findstr command is used to find text string patterns in one or more files.

56
of 97

Finger

The finger command is used to return information about one or more users on a remote computer that's running the Finger service.

57
of 97

Fltmc

The fltmc command is used to load, unload, list, and otherwise manage Filter drivers.
58
of 97

For

The for command is used to run a specified command for each file in a set of files. The for command is most often used within a batch or script file.

59
of 97

Forcedos

The forcedos command is used to start the specified program in the MS-DOS subsystem.

The forcedos command is not available in 64-bit versions of Windows XP and is only available in 32-bit versions to support MS-DOS programs that are not recognized as such by Windows XP.

60
of 97

The format command is used to format a drive in the file system that you specify.

Drive formatting is also available from Disk Management in Windows XP. More »

61
of 97

Fsutil

The fsutil command is used to perform various FAT and NTFS file system tasks like managing to reparse points and sparse files, dismounting a volume and extending a volume.

62
of 97

Ftp

The ftp command can be used to transfer files to and from another computer. The remote computer must be operating as an FTP server.

63
of 97

Ftype

64
of 97

Getmac

The getmac command is used to display the media access control (MAC) address of all the network controllers on a system.

65
of 97

Goto

The goto command is used in a batch or script file to direct the command process to a labeled line in the script.

66
of 97

Gpresult

The gpresult command is used to display Group Policy settings.

67
of 97

Gpupdate

The gpupdate command is used to update Group Policy settings.

68
of 97

Graftabl

The graftabl command is used to enable the ability of Windows to display an extended character set in graphics mode.

The graftabl command is not available in 64-bit versions of Windows XP.

69
of 97

Graphics

The graphics command is used to load a program that can print graphics.

The graphics command is not available in 64-bit versions of Windows XP.

70
of 97

The help command provides more detailed information on other Command Prompt commands. More »

71
of 97

Hostname

The hostname command displays the name of the current host.

72
of 97

If

The if command is used to perform conditional functions in a batch file.
73
of 97

Ipconfig

The ipconfig command is used to display detailed IP information for each network adapter utilizing TCP/IP. The ipconfig command can also be used to release and renew IP addresses on systems configured to receive them via a DHCP server.

74
of 97

Ipxroute

The ipxroute command is used to display and change information about IPX routing tables.

75
of 97

Kb16

The kb16 command is used to support MS-DOS files that need to configure a keyboard for a specific language.

The kb16 command is not available in 64-bit versions of Windows XP.

76
of 97

Label

The label command is used to manage the volume label of a disk.

77
of 97

Loadfix

The loadfix command is used to load the specified program in the first 64K of memory and then runs the program.

The loadfix command is not available in 64-bit versions of Windows XP.

78
of 97

Lodctr

The lodctr command is used to update registry values related to performance counters.

79
of 97

Logman

The logman command is used to create and manage Event Trace Session and Performance logs. The logman command also supports many functions of Performance Monitor.

80
of 97

Logoff

The logoff command is used to terminate a session.

81
of 97

Lpq

The lpq command displays the status of a print queue on a computer running Line Printer Daemon (LPD).

82
of 97

Lpr

The lpr command is used to send a file to a computer running Line Printer Daemon (LPD).

83
of 97

Makecab

The makecab command is used to losslessly compress one or more files. The makecab command is sometimes called Cabinet Maker.

The makecab command is the same as the diantz command.

84
of 97

Md

The md command is the shorthand version of the mkdir command.

85
of 97

Mem

The mem command shows information about used and free memory areas and programs that are currently loaded into memory in the MS-DOS subsystem.

The mem command is not available in 64-bit versions of Windows XP.

86
of 97

Mkdir

The mkdir command is used to create a new folder.

87
of 97

Mode

The mode command is used to configure system devices, most often COM and LPT ports.
88
of 97

The more command is used to display the information contained in a text file. The more command can also be used to paginate the results of any other Command Prompt command. More »

89
of 97

Mountvol

The mountvol command is used to display, create, or remove volume mount points.

90
of 97

Move

The move command is used to move one or files from one folder to another. The move command is also used to rename directories.
91
of 97

Mrinfo

The mrinfo command is used to provide information about a router's interfaces and neighbors.

92
of 97

The msg command is used to send a message to a user. More »

93
of 97

Msiexec

The msiexec command is used to start Windows Installer, a tool used to install and configure software.
94
of 97

Nbtstat

The nbtstat command is used to show TCP/IP information and other statistical information about a remote computer.

95
of 97
The net command is used to display, configure, and correct a wide variety of network settings. More »
96
of 97

Net1

The net1 command is used to display, configure, and correct a wide variety of network settings.

The net command should be used instead of the net1 command. The net1 command was made available in versions of Windows before Windows XP as a temporary fix for a Y2K issue that the net command had, which was corrected before the release of Windows XP. The net1 command remains in Windows XP only for compatibility with older programs and scripts that utilized the command.

There are so many Command Prompt commands that my website can't handle them all in this one list!

Click the link above to see the second half of the Command Prompt commands available in Windows XP. More »