Microsoft Windows XP - Command-Line Reference A-Z
Total Page:16
File Type:pdf, Size:1020Kb
www.GetPedia.com *More than 150,000 articles in the search database *Learn how almost everything works Microsoft Windows XP - Command-line reference A-Z Windows XP Professional Product Documentation > Performance and maintenance Command-line reference A-Z To find information about a command, on the A-Z button menu at the top of this page, click the letter that the command starts with, and then click the command name. In addition to the tools installed with Windows XP, there are over 40 support tools included on the Windows XP CD. You can use these tools to diagnose and resolve computer problems. For more information about these support tools, see Windows Support Tools For information about installing support tools, see Install Windows Support Tools For more information about changes to the functionality of MS-DOS commands, new command-line tools, command shell functionality, configuring the command prompt, and automating commmand-line tasks, see Command-line reference Some command-line tools require the user to have administrator-level privileges on source and/or target computers. 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 /? A Arp Assoc At Atmadm Attrib Top of page B Batch files http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?pf=true (1 of 11)5/22/2004 10:58:52 PM Microsoft Windows XP - Command-line reference A-Z Bootcfg Break Top of page C Cacls Call Change Chcp Chdir Chkdsk Chkntfs Cipher Cls Cmd Cmstp Color Command shell overview Comp Compact Convert Copy Cprofile http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?pf=true (2 of 11)5/22/2004 10:58:52 PM Microsoft Windows XP - Command-line reference A-Z CScript overview Top of page D Date Defrag Del Dir Diskcomp Diskcopy DiskPart Doskey Driverquery Top of page E Echo Endlocal Eventcreate Eventquery Eventtriggers Evntcmd Exit Expand Top of page http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?pf=true (3 of 11)5/22/2004 10:58:52 PM Microsoft Windows XP - Command-line reference A-Z F Fc Filter commands Find Findstr Finger Flattemp For Format Fsutil Ftp Ftp subcommands Ftype Top of page G Getmac Goto Gpresult Gpupdate Graftabl Top of page H Help http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?pf=true (4 of 11)5/22/2004 10:58:52 PM Microsoft Windows XP - Command-line reference A-Z Helpctr Hostname Top of page I If Ipconfig Ipseccmd Ipxroute Irftp Top of page L Label Lodctr Logman Lpq Lpr Top of page M Macfile Mkdir (md) Mmc Mode More http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?pf=true (5 of 11)5/22/2004 10:58:52 PM Microsoft Windows XP - Command-line reference A-Z Mountvol Move MS-DOS subsystem configuration commands Msiexec Msinfo32 Top of page N Nbtstat Net services overview Net services commands Netsh command overview Netsh commands for AAAA Netsh commands for DHCP Netsh diagnostic (diag) commands Netsh commands for Interface IP Netsh commands for RAS Netsh commands for Routing Netsh commands for WINS Netstat Nslookup Nslookup subcommands Ntbackup http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?pf=true (6 of 11)5/22/2004 10:58:52 PM Microsoft Windows XP - Command-line reference A-Z Ntcmdprompt Ntsd Top of page O Openfiles Top of page P Pagefileconfig Path Pathping Pause Pbadmin Pentnt Perfmon Ping Popd Print Prncnfg Prndrvr Prnjobs Prnmngr Prnport Prnqctl http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?pf=true (7 of 11)5/22/2004 10:58:52 PM Microsoft Windows XP - Command-line reference A-Z Prompt Pushd Top of page Q Query Top of page R Rasdial Rcp Recover Redirection operators Reg Regsvr32 Relog Rem Rename Replace Reset session Rexec Rmdir Route Rsh Rsm http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?pf=true (8 of 11)5/22/2004 10:58:52 PM Microsoft Windows XP - Command-line reference A-Z Runas Top of page S Sc Schtasks Secedit Set Setlocal Shift Shutdown Sort Start Subst Systeminfo System File Checker (sfc) Top of page T Taskkill Tasklist Tcmsetup TCP/IP utilities and services Telnet commands http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?pf=true (9 of 11)5/22/2004 10:58:52 PM Microsoft Windows XP - Command-line reference A-Z Terminal Services commands Tftp Time Title Tracerpt Tracert Tree Type Typeperf Top of page U Unlodctr Top of page V Ver Verify Vol Vssadmin Top of page W W32tm Winnt Winnt32 http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?pf=true (10 of 11)5/22/2004 10:58:52 PM Microsoft Windows XP - Command-line reference A-Z WMIC overview Top of page X Xcopy Top of page Manage Your Profile ©2004 Microsoft Corporation. All rights reserved. Terms of Use | Privacy Statement http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?pf=true (11 of 11)5/22/2004 10:58:52 PM Microsoft Windows XP - Arp Arp Displays and modifies entries in the Address Resolution Protocol (ARP) cache, which contains one or more tables that are used to store IP addresses and their resolved Ethernet or Token Ring physical addresses. There is a separate table for each Ethernet or Token Ring network adapter installed on your computer. Used without parameters, arp displays help. Syntax arp [-a [InetAddr] [-N IfaceAddr]] [-g [InetAddr] [-N IfaceAddr]] [-d InetAddr [IfaceAddr]] [- s InetAddr EtherAddr [IfaceAddr]] Top of page Parameters -a [InetAddr] [-N IfaceAddr] : Displays current ARP cache tables for all interfaces. To display the ARP cache entry for a specific IP address, use arp -a with the InetAddr parameter, where InetAddr is an IP address. To display the ARP cache table for a specific interface, use the - N IfaceAddr parameter where IfaceAddr is the IP address assigned to the interface. The -N parameter is case-sensitive. -g [InetAddr] [-N IfaceAddr] : Identical to -a. -d InetAddr [IfaceAddr] : Deletes an entry with a specific IP address, where InetAddr is the IP address. To delete an entry in a table for a specific interface, use the IfaceAddr parameter where IfaceAddr is the IP address assigned to the interface. To delete all entries, use the asterisk (*) wildcard character in place of InetAddr. -s InetAddr EtherAddr [IfaceAddr] : Adds a static entry to the ARP cache that resolves the IP address InetAddr to the physical address EtherAddr. To add a static ARP cache entry to the table for a specific interface, use the IfaceAddr parameter where IfaceAddr is an IP address assigned to the interface. /? : Displays help at the command prompt. http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/arp.mspx (1 of 3)5/22/2004 11:07:49 PM Microsoft Windows XP - Arp Top of page Remarks •The IP addresses for InetAddr and IfaceAddr are expressed in dotted decimal notation. •The physical address for EtherAddr consists of six bytes expressed in hexadecimal notation and separated by hyphens (for example, 00-AA-00-4F-2A-9C). •Entries added with the -s parameter are static and do not time out of the ARP cache. The entries are removed if the TCP/IP protocol is stopped and started. To create permanent static ARP cache entries, place the appropriate arp commands in a batch file and use Scheduled Tasks to run the batch file at startup. •This command is available only if the Internet Protocol (TCP/IP) protocol is installed as a component in the properties of a network adapter in Network Connections Top of page Examples To display the ARP cache tables for all interfaces, type: arp -a To display the ARP cache table for the interface that is assigned the IP address 10.0.0.99, type: arp -a -N 10.0.0.99 To add a static ARP cache entry that resolves the IP address 10.0.0.80 to the physical address 00- AA-00-4F-2A-9C, type: arp -s 10.0.0.80 00-AA-00-4F-2A-9C Top of page Formatting legend Format Meaning Italic Information that the user must supply Bold Elements that the user must type exactly as shown http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/arp.mspx (2 of 3)5/22/2004 11:07:49 PM Microsoft Windows XP - Arp Ellipsis (...) Parameter that can be repeated several times in a command line Between brackets ([]) Optional items Between braces ({}); choices separated by Set of choices from which the user must choose pipe (|). Example: {even|odd} only one Courier font Code or program output Command-line reference A-Z Schtasks Top of page Manage Your Profile |Legal |Contact Us ©2004 Microsoft Corporation. All rights reserved. Terms of Use |Privacy Statement http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/arp.mspx (3 of 3)5/22/2004 11:07:49 PM Microsoft Windows XP - Assoc Assoc Displays or modifies file name extension associations. Used without parameters, assoc displays a list of all the current file name extension associations. Syntax assoc [.ext[=[filetype]]] Top of page Parameters .ext : Specifies the file name extension.