Writes the position of a program into a specified list, which is in the working memory and should accelerate the start of programs. Searches through a file or multiple files for a particular character sequence. Finds character sequences in one or multiple files. Enables the option to use extended characters of a specific code page in graphics mode. Changes the country settings of the keyboard for DOS programs only included in Windows for compatibility reasons.
Logs the user out of Windows. Sends a file to a computer that uses a line printer daemon LPD. Creates a new directory on the specified path. Outputs the content of a file for example, a text file by the page. Sends a message to another user. Provides country-specific information for language support. Runs backup services directly from the command line or as part of batch or script files. Creates and displays the path for searching executable files. Pauses execution in batch files and scripts.
Changes to the folder saved by the pushd command. Prints a text file. Saves a specific path into a script or batch file. Deletes a directory. Allows a user to run commands with the rights of another user. Starts Microsoft ScanDisk. Sets the execution of specified programs and commands for a specified point in time. Displays environmental variables of CMD. Lists out data from a file or command and outputs it again sorted — directly in the command prompt, in a new file, or in another output.
Opens a new command prompt window in which you can run a specific program or command. Assigns a drive letter to a path to create a virtual drive. Ends one or more running tasks. Lists all running processes — also on remote computers, if desired. Displays the current time and allows it to be changed. Stops a process for a specified time. Changes the title of the command prompt. Graphically displays the directory structure of a drive or path. Sets the path in which files will be searched for.
Changes attributes of specified files. Displays and changes the encryption status of files and directories on NTFS partitions. Compares the content of two files or two file sets.
Displays and changes the compression status of files and directories on NTFS partitions. Copies a file or multiple files to another location. Runs scripts over the Microsoft Script Host. Deletes a file or multiple files. Deletes a directory as well as all subdirectories and files within.
Compresses files without any loss command has the same function as makecab. Ends the valid range of changes to batch files or scripts. Extracts files and folders stored in CAB files. Extracts files and folders stored in CAB files in new Windows versions use expand. Compares two individual files or two sets of files with one another and displays the differences. Sets a specific command that should be run for each individual file in a file set. Selects one or more files and runs a command that refers to these files.
Specifies a program for opening a specific file type. Skips the execution within a batch program to a specific line marker. Represents a conditional statement and executes expressions within batch files only under certain conditions. Compresses files without loss in CAB format you can also use the diantz command.
Creates a symbolic link to a file. Moves a file or multiple files from one directory to another. Displays and separates open system files and folders. Restores readable files that were on a defective data drive. Changes the name of a particular file. Replaces the selected file or files with one or more other files. Allows so-called robust file copying. Manages media on removable storage devices.
Limits the valid range of changes to batch files or scripts. Starts the WinSxs Tracing Utility, a tool for programming diagnostics. Restores administrator access rights to a file that have been lost when reassigning a user. When enabled, checks whether files are written correctly on a data drive.
Finds files that match a particular search topic. Copies files and entire directory structures. Starts commands and programs at a particular time. Creates backups of files. Allows users to make changes to start configuration data storage the command is a new version of bootcfq. Prepares a hard drive for BitLocker Drive Encryption. Creates, edits, or displays the content of boot. Edits and displays the access control list. Changes or displays the data driver check at startup.
Changes the standard input and output for the system. Creates or configures compresses drives a newer version of the command is called drvspace. Defragments all or only specified drives. Manages, creates, and deletes partitions from the hard drive. Allows users to remotely control the disk performance counter. Creates or configures compressed drives. Manages databases within the extensible storage engine.
Creates an entry ID and message in an event log. Creates, deletes, and manages partitions on the hard drive. Allows users to manage and display filter drivers. Installs additional Windows features. Formats a drive to the file system specified by the user.
Provides numerous features related to the file system, such as disk removal. Compiles self-created dictionaries for handwriting recognition. Installs a compiled dictionary for handwriting recognition. Loads a program into the high memory area UMB — has the same function as loadhigh.
Locks a drive so that only a user-selected program can access it directly. Updates all registry entries that have to do with performance indicators. Some commands involving specialized system or network administration have been omitted.
Commands in Windows 7 are very similar and are listed on a related page. Back to top. By Vic Laurie. Command Prompt, also known as cmd. Most of the Windows CMD Commands are used to automate tasks via scripts and batch files, perform advanced administrative functions, and troubleshoot and solve certain kinds of Windows issues.
Also, you can use these commands to do some exciting hacks through Windows — which we will list soon. If you think we forget to add any other CMD commands in this list, please notify us.
And soon wait for more command prompt tricks. Save my name, email, and website in this browser for the next time I comment.
This site uses Akismet to reduce spam. Learn how your comment data is processed. The pentnt command is available in Windows XP. The pentnt command was removed beginning in Windows Vista due to the lack of Intel Pentium CPU use at the time of this operating system release. The ping command is available in all versions of Windows. Package Manager installs, uninstalls, configures, and updates features and packages for Windows. Pnpunattend The pnpunattend command is used to automate the installation of hardware device drivers.
Pnputil The pnputil command is used to start the Microsoft PnP Utility, a tool used to install a Plug and Play device from the command line. Popd The popd command is used to change the current directory to the one most recently stored by the pushd command. The popd command is most often utilized from within a batch or script file. Power The power command is used to reduce the power consumed by a computer by monitoring software and hardware devices. The power command was replaced by operating system integrated power management functions beginning in Windows XP.
Powercfg The powercfg command is used to manage the Windows power management settings from the command line. Print The print command is used to print a specified text file to a specified printing device.
Pushd The pushd command is used to store a directory for use, most commonly from within a batch or script program. Pwlauncher The pwlauncher command is used to enable, disable, or show the status of your Windows To Go startup options. The pwlauncher command is available in Windows 10 and 8. Qappsrv The qappsrv command is used to display all Remote Desktop Session Host servers available on the network.
The qbasic command is not installed by default with Windows 98 or 95 but is available from the installation disc or disks. Qprocess The qprocess command is used to display information about running processes. Query The query command is used to display the status of a specified service.
Quser The quser command is used to display information about users currently logged on to the system. Qwinsta The qwinsta command is used to display information about open Remote Desktop Sessions. Rasdial The rasdial command is used to start or end a network connection for a Microsoft client. Rcp The rcp command is used to copy files between a Windows computer and a system running the rshd daemon. Rd The rd command is the shorthand version of the rmdir command.
The rdpsign command is available in Windows 7. The reagentc command is available in Windows 10, Windows 8, and Windows 7. Recimg The recimg command is used to create a custom refresh image.
The recimg command is available in Windows 8. Recover The recover command is used to recover readable data from a bad or defective disk. Reg The reg command is used to manage the Windows Registry from the command line.
The reg command can perform common registry functions like adding registry keys , exporting the registry , etc. Regini The regini command is used to set or change registry permissions and registry values from the command line. The register-cimprovider command is available in Windows 10 and Windows 8. Relog The relog command is used to create new performance logs from data in existing performance logs. Rem The rem command is used to record comments or remarks in a batch or script file.
Ren The ren command is the shorthand version of the rename command. Rename The rename command is used to change the name of the individual file that you specify. Repair-bde The repair-bde command is used to repair or decrypt a damaged drive that's been encrypted using BitLocker.
The repair-bde command is available in Windows 10, Windows 8, and Windows 7. Replace The replace command is used to replace one or more files with one or more other files. Reset The reset command, executed as reset session , is used to reset the session subsystem software and hardware to known initial values.
Restore The restore command is used to restore files that were backed up using the backup command. Rexec The rexec command is used to run commands on remote computers running the rexec daemon. Rmdir The rmdir command is used to delete an existing or completely empty folder.
Robocopy The robocopy command is used to copy files and directories from one location to another. This command is also called Robust File Copy. The robocopy command is superior to both the copy command and the xcopy command because robocopy supports many more options.
Route The route command is used to manipulate network routing tables. The route command is available in all versions of Windows. The rpcinfo command is available in Windows 7 and Windows Vista. Rpcping The rpcping command is used to ping a server using RPC. Rsh The rsh command is used to run commands on remote computers running the rsh daemon. Rsm The rsm command is used to manage media resources using Removable Storage. The rsm command was optional in Windows Vista and then removed in Windows 7 due to Removable Storage Manager being removed from the operating system.
Runas The runas command is used to execute a program using another user's credentials. Rwinsta The rwinsta command is the shorthand version of the reset session command.
Sc The sc command is used to configure information about services. The sc command communicates with the Service Control Manager. Scandisk The scandisk command is used to start Microsoft ScanDisk, a disk repair program.
The scandisk command was replaced by the chkdsk command beginning in Windows XP. Scanreg The scanreg command starts Windows Registry Checker, a basic registry repair program and backup utility. The scanreg command is available in Windows 98 and Windows The functions provided by the scanreg command were no longer necessary beginning in Windows XP due to changes in how the Windows Registry functions.
Schtasks The schtasks command is used to schedule specified programs or commands to run at certain times. The schtasks command can be used to create, delete, query, change, run, and end scheduled tasks. Secedit The secedit command is used to configure and analyze system security by comparing the current security configuration to a template.
Setlocal The setlocal command is used to start the localization of environment changes inside a batch or script file. The setspn command is available in Windows 10, Windows 8, and Windows 7. The setver command is not available in bit versions of Windows. Setx The setx command is used to create or change environment variables in the user environment or the system environment. Sfc The sfc command is used to verify and replace important Windows system files.
The sfc command is also referred to as System File Checker or Windows Resource Checker, depending on the operating system. Shadow The shadow command is used to monitor another Remote Desktop Services session. The share command is not available in bit versions of Windows. Shift The shift command is used to change the position of replaceable parameters in a batch or script file.
Showmount The showmount command is used to display information about NFS mounted file systems. The showmount command is available in Windows 7 and Windows Vista. Shutdown The shutdown command can be used to shut down, restart , or log off the current system or a remote computer.
Caching is automatic beginning in Windows XP, making the smartdrv command unnecessary. Sort The sort command is used to read data from a specified input, sort that data, and return the results of that sort to the Command Prompt screen, a file, or another output device. Start The start command is used to open a new command line window to run a specified program or command.
The start command can also be used to start an application without creating a new window. The start command is available in all versions of Windows. Subst The subst command is used to associate a local path with a drive letter. The subst command is a lot like the net use command except a local path is used instead of a shared network path.
Sxstrace The sxstrace command is used to start the WinSxs Tracing Utility, a programming diagnostic tool. The sys command is used most often to create a simple bootable disk or hard drive. The necessary system files for Windows are too large to fit on a disk, so the sys command was removed beginning in Windows XP. Systeminfo The systeminfo command is used to display basic Windows configuration information for the local or a remote computer.
Takeown The takedown command is used to regain access to a file that that an administrator was denied access to when reassigning ownership of the file.
Taskkill The taskkill command is used to terminate a running task. The taskkill command is the command line equivalent of ending a process in Task Manager in Windows. Telnet The telnet command is used to communicate with remote computers that use the Telnet protocol. The telnet command is available in all versions of Windows. The telnet command is not available by default in Windows 10, 8, 7, or Vista, but can be enabled by turning on the Telnet Client Windows feature from Programs and Features in Control Panel.
Time The time command is used to show or change the current time. Timeout The timeout command is typically used in a batch or script file to provide a specified timeout value during a procedure. The timeout command can also be used to ignore keypresses. Title The title command is used to set the Command Prompt window title.
Tlntadmn The tlntadmn command is used to administer a local or remote computer running Telnet Server. The tlntadmn command is not available by default in Windows 8, 7, or Vista, but can be enabled by turning on the Telnet Server Windows feature from Programs and Features in Control Panel.
Tpmvscmgr The tpmvscmgr command is used to create and destroy TPM virtual smart cards. The tpmvscmgr command is available in Windows 8. Tracerpt The tracerpt command is used to process event trace logs or real-time data from instrumented event trace providers. The tracert command is available in all versions of Windows. Tree The tree command is used to graphically display the folder structure of a specified drive or path.
Tscon The tscon command is used to attach a user session to a Remote Desktop session. Tsdiscon The tsdiscon command is used to disconnect a Remote Desktop session. Tskill The tskill command is used to end the specified process. Tsshutdn The tsshutdn command is used to remotely shut down or restart a terminal server.
The tsshutdn command is available in Windows XP. The ability to shut down a computer remotely is also available in the more powerful shutdown command, so tsshutdn was removed beginning in Windows Vista. Type The type command is used to display the information contained in a text file.
Typeperf The typerperf command displays performance data in the Command Prompt window or writes the data to specified log file. Tzutil The tzutil command is used to display or configure the current system's time zone.
The tzutil command can also be used to enable or disable Daylight Saving Time adjustments. The tzutil command is available in Windows 10, Windows 8, and Windows 7. The umount command is available in Windows 7 and Windows Vista. The undelete command was removed beginning in Windows 95 due to the availability of the Recycle Bin in Windows.
Additionally, free file recovery programs are available from third-party software makers. The unformat command was removed beginning in Windows 95 due to file system changes. Unlock The unlock command is used to unlock a drive, disabling direct disk access for a program. The unlock command is only available in Windows 98 and Unlodctr The unlodctr command removes Explain text and Performance counter names for a service or device driver from the Windows Registry. Vaultcmd The vaultcmd command is used to create, remove, and show stored credentials.
The vaultcmd command is available in Windows 10, Windows 8, and Windows 7. Vol The vol command shows the volume label and serial number of a specified disk, assuming this information exists. Microsoft provides an optional virus protection suite called Microsoft Security Essentials for Windows XP and later operating systems, and third-party antivirus tools are available for all versions of Windows.
Vssadmin The vssadmin command starts the Volume Shadow Copy Service administrative command line tool which displays current volume shadow copy backups and all installed shadow copy writers and providers. W32tm The w32tm command is used to diagnose issues with Windows Time. Waitfor The waitfor command is used to send or wait for a signal on a system. Wbadmin The wbadmin command is used to start and stop backup jobs, display details about a previous backup, list the items within a backup, and report on the status of a currently running backup.
The wbadmin command replaced the ntbackup command beginning in Windows Vista. Wecutil The wecutil command is used to manage subscriptions to events that are forwarded from WS-Management supported computers. Wevtutil The wevtutil command starts the Windows Events Command Line Utility which is used to manage event logs and publishers.
Where The where command is used to search for files that match a specified pattern. Whoami The whoami command is used to retrieve user name and group information on a network.
The winmgmt command is available in all versions of Windows. Winrm The winrm command is used to start the command line version of Windows Remote Management, used to manage secure communications with local and remote computers using web services. Winrs The winrs command is used to open a secure command window with a remote host.
Winsat The winsat command starts the Windows System Assessment Tool, a program that assesses various features, attributes, and capabilities of a computer running Windows.
Xcopy The xcopy command can copy one or more files or directory trees from one location to another. The xcopy command is generally considered a more "powerful" version of the copy command through the robocopy command trumps even xcopy. A command by the name of xcopy32 existed in Windows 95 and Windows To avoid a long and confusing explanation here, just know that no matter if you executed the xcopy command or the xcopy32 command, you were always executing the most updated version of the command.
The xwizard command is available in Windows 10, Windows 8, and Windows 7. Was this page helpful? Thanks for letting us know! Email Address Sign up There was an error. Please try again. You're in! Thanks for signing up. There was an error. Tell us why! More from Lifewire. How to Open an Elevated Command Prompt. How to Open Command Prompt Windows 10, 8, 7, etc. Your Privacy Rights. To change or withdraw your consent choices for Lifewire. At any time, you can update your settings through the "EU Privacy" link at the bottom of any page.
These choices will be signaled globally to our partners and will not affect browsing data. We and our partners process data to: Actively scan device characteristics for identification. I Accept Show Purposes. The append command can be used by programs to open files in another directory as if they were located in the current directory.
The arp command is used to display or change entries in the ARP cache. The assoc command is used to display or change the file type associated with a particular file extension. The at command is used to schedule commands and other programs to run at a specific date and time. The atmadm command is used to display information related to asynchronous transfer mode ATM connections on the system.
0コメント