Windows Command Line Reference

From HaFrWiki42
Jump to navigation Jump to search

Introduction

For more information look at the See also at the bottom of this page.
The command line reference and templates are based on several internet pages.
See for libraries & templates the reference section [1][2].
The external links of the commands on this site link to the SS64 website of Simon Sheppard [3].

A

Command Description
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.
Displays or modifies file name extension associations. Used without parameters, assoc displays a list of all the current file name extension associations. The changes are stored in the registry HKLM\SOFTWARE\Classes\.<extname>. See Windows Command reg to query the registry and the regedit. [5]
at
Schedules commands and programs to run on a computer at a specified time and date. You can use at only when the Schedule service is running. Used without parameters, at lists scheduled commands.
atmadm
Monitors connections and addresses that are registered by the ATM Call Manager on an asynchronous transfer mode (ATM) network. You can use atmadm to display statistics for incoming and outgoing calls on ATM adapters. Used without parameters, atmadm displays statistics for monitoring the status of active ATM connections.
Displays, sets, or removes the read-only, archive, system, and hidden attributes assigned to files or directories. Used without parameters, attrib displays attributes of all files in the current directory.

B

Command Description
Batch files A batch file is an unformatted text file that contains one or more commands and has a .bat or .cmd file name extension. When you type the file name at the command prompt, Cmd.exe runs the commands sequentially as they appear in the file.
Batch file commands.
Configure, query, change or delete the settings in the boot.ini file.
Break
Sets or Clears Extended CTRL+C checking on DOS system
Contents: Top - 0–9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

C

Command Description
Deprecated, use icacls.
Call one batch program from another
Change directory.
Change Terminal Server Session properties
chkdsk Check disk, check and repair disk problems
chkntfs Check NTFS, Checks the NTFS file system
choice Accept keyboard input. Allows users to select one item from a list.
cipher Displays or alters the encryption of directories [files] on NTFS partitions.
cleanmgr Automated cleanup of Temp files, recycle bin
clip Redirects output of command line tools to the Windows clipboard.
cls Clear screen
cmd Start a new CMD window.
color Change the color of the CMD window. Color attributes are specified by TWO hex digits -- the first corresponds to the background; the second the foreground.
comp Compares the content of 2 files.
compact Displays or alters the compression of files on NTFS partitions.
convert Converts a FAT volume to NTFS.
copy Copies one or more files to another location.
Contents: Top - 0–9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

D

Command Description
Display or set the date
De-fragmentation of a hard drive.
Deletes one or more files
Deprecated in Vista, no alternative.
Deletes NT user profiles.
rd]]).
Deletes a folder and all subfolders.
Deprecated in Vista.
Device Manager Command Line Utility
Displays a list of files and folders•
Displays disk usage
Compares the contents of two floppy disks
Copies the contents of one floppy disk to another
Disk Administration
DNS Statistics
Edits command line, recall commands, and create macros
Add user (computer, group..) to active directory
Lists items in active directory
Modify user (computer, group..) in active directory
Remove items from Active Directory
Contents: Top - 0–9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

E

Command Description
Display message on screen•
Ends localisation of environment changes in a batch file•
Deletes one or more files•
Enables an administrator to create a custion event ID and message in a specific Windows event log.
Quits the current script/routine and set an errorlevel•
Uncompresses files
Uncompresses CAB files
Contents: Top - 0–9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

F

Command Description
FC Compare two files
FIND Search for a text string in a file
FINDSTR Search for strings in files
FOR /F Loop command: against a set of files•
FOR /F Loop command: against the results of another command•
FOR Loop command: all options Files, Directory, List•
FORFILES Batch process multiple files
FORMAT Format a disk
FREEDISK Check free disk space (in bytes)
FSUTIL File and Volume utilities
FTP File Transfer Protocol.
In windows the portnumber is not possible on the command line. See Windows FTP.
FTYPE Display or modify file types used in file extension associations•
Contents: Top - 0–9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

G

Command Description
GLOBAL Display membership of global groups
GOTO Direct a batch program to jump to a labelled line•
GPUPDATE Update Group Policy settings
Contents: Top - 0–9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

H

Command Description
HELP Online Help
Hostname Prints the name of the current host
Contents: Top - 0–9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

I

Command Description
Display or modifies access control lists (ACL). Successor of the deprecates cacls.
IF Conditionally perform a command•
IFMEMBER Is the current user in an NT Workgroup
IPCONFIG Configure IP
Contents: Top - 0–9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

J

Command Description
Contents: Top - 0–9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

K

Command Description
KILL Remove a program from memory
Contents: Top - 0–9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

L

Command Description
LABEL Edit a disk label
LOCAL Display membership of local groups
LOGEVENT Write text to the NT event viewer
LOGOFF Log a user off
LOGTIME Log the date and time in a file
Contents: Top - 0–9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

M

Command Description
MAPISEND Send email from the command line
MBSAcli Baseline Security Analyzer.
MEM Display memory usage
MD Create new folders•
MKLINK Create a symbolic link (linkd)
MODE Configure a system device
MORE Display output, one screen at a time
MOUNTVOL Manage a volume mount point
MOVE Move files from one folder to another•
MOVEUSER Move a user from one domain to another
MSG Send a message
MSIEXEC Microsoft Windows Installer
MSINFO Windows NT diagnostics
MSTSC Terminal Server Connection (Remote Desktop Protocol)
MUNGE Find and Replace text within file(s)
MV Copy in-use files
Contents: Top - 0–9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

N

Command Description
Manage network resources
NETDOM Domain Manager
Configure Network Interfaces, Windows Firewall & Remote access
NETSVC Command-line Service Controller
NBTSTAT Display networking statistics (NetBIOS over TCP/IP)
NETSTAT Display networking statistics (TCP/IP)
NOW Display the current Date and Time
NSLOOKUP Name server lookup
NTBACKUP Backup folders to tape
NTRIGHTS Edit user account rights
Contents: Top - 0–9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

O

Command Description
Contents: Top - 0–9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

P

Command Description
PATH Display or set a search path for executable files•
PATHPING Trace route plus network latency and packet loss
PAUSE Suspend processing of a batch file and display a message•
PERMS Show permissions for a user
PERFMON Performance Monitor
PING Test a network connection
POPD Restore the previous value of the current directory saved by PUSHD•
PORTQRY Display the status of ports and services
POWERCFG Configure power settings
PRINT Print a text file
PRNCNFG Display, configure or rename a printer
PRNMNGR Add, delete, list printers set the default printer
PROMPT Change the command prompt•
PsExec Execute process remotely
PsFile Show files opened remotely
PsGetSid Display the SID of a computer or a user
PsInfo List information about a system
PsKill Kill processes by name or process ID
PsList List detailed information about processes
PsLoggedOn Who's logged on (locally or via resource sharing)
PsLogList Event log records
PsPasswd Change account password
PsService View and control services
PsShutdown Shutdown or reboot a computer
PsSuspend Suspend processes
PUSHD Save and then change the current directory•
Contents: Top - 0–9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Q

Command Description
QGREP Search file(s) for lines that match a given pattern.
Contents: Top - 0–9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

R

Command Description
RASDIAL Manage RAS connections
RASPHONE Manage RAS connections
RECOVER Recover a damaged file from a defective disk.
Perform registry commands without opening the registry. Use reg /? to see all options. Windows Registry Function [5].
Editor for the windows regsitry. Do not use this command except when you know what you are doing. [5].
REGSVR32 Register or unregister a DLL
REGINI Change Registry Permissions
REM Record comments (remarks) in a batch file•
REN Rename a file or files•
REPLACE Replace or update one file with another
RD Delete folder(s)•
RMTSHARE Share a folder or a printer
ROBOCOPY Robust File and Folder Copy
ROUTE Manipulate network routing tables
RUNAS Execute a program under a different user account
RUNDLL32 Run a DLL command (add/remove print connections)
Contents: Top - 0–9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

S

Command Description
Communicates with the Service Control Manager and services.
Example: sc start MyService
SCHTASKS Schedule a command to run at a specific time
SCLIST Display NT Services
SET Display, set, or remove environment variables•
SETLOCAL Control the visibility of environment variables•
SETX Set environment variables permanently
SHARE List or edit a file share or print share
SHIFT Shift the position of replaceable parameters in a batch file•
SHORTCUT Create a windows shortcut (.LNK file)
SHOWGRPS List the NT Workgroups a user has joined
SHOWMBRS List the Users who are members of a Workgroup
SHUTDOWN Shutdown the computer
SLEEP Wait for x seconds
SLMGR Software Licensing Management (Vista/2008)
SOON Schedule a command to run in the near future
SORT Sort input
START Start a program or command in a separate window•
SU Switch User
SUBINACL Edit file and folder Permissions, Ownership and Domain
SUBST Associate a path with a drive letter
SYSTEMINF O List system configuration
Contents: Top - 0–9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

T

Command Description
takeown Allows an admin to recover access to a file that was denied by re-assigning file ownership.
TASKLIST List running applications and services
TASKKILL Remove a running process from memory
TIME Display or set the system time•
TIMEOUT Delay processing of a batch file
TITLE Set the window title for a CMD.EXE session•
TLIST Task list with full path
TOUCH Change file timestamps
TRACERT Trace route to a remote host
TREE Graphical display of folder structure
TYPE Display the contents of a text file•
Contents: Top - 0–9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

U

Command Description
unix2dos Converts unix files to DOS files for linefeeds and carriage returns.
user
USRSTAT List domain usernames and last login
utilman Utility manager
Contents: Top - 0–9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

V

Command Description
VER Display version information•
VERIFY Verify that files have been saved•
VOL Display a disk label•
Contents: Top - 0–9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

W

Command Description
WHERE Locate and display files in a directory tree
WHOAMI Output the current UserName and domain
WINDIFF Compare the contents of two files or sets of files
WINMSD Windows system diagnostics
WINMSDP Windows system diagnostics II
WMIC WMI Commands
Contents: Top - 0–9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

X

Command Description
XCACLS Change file and folder permissions
XCOPY Copy files and folders
xmlcatalog Parse the catalog file and query it for the entities
xmllint Parse the XML files and output the result of the parsing
Contents: Top - 0–9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Y

Command Description
Contents: Top - 0–9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Z

Command Description
Contents: Top - 0–9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

See also

Internal

External

Reference

top

  1. Ritchie Lawrence Comand Line co.uk website
  2. Windows command templates wiki internal templates made
  3. Windows XP Command, Simon Sheppard's website, Somerset, England.
  4. 4.0 4.1 4.2 4.3 Internal commands only available within the CMD shell.
  5. 5.0 5.1 5.2 Windows registry, wikipedia Registry Information.