Complete Syntax from A to Z of Windows Command Prompt

Home/Basic Windows Tips, Utility Tips, Windows 10, Windows 8/Complete Syntax from A to Z of Windows Command Prompt

Complete Syntax from A to Z of Windows Command Prompt

The Windows Command prompt is a DOS-based command application on the Windows operating system. By using Syntax Command Prompt this will be able to facilitate the Windows computer users to interact with the computer either online or offline, as a tool compiler of the various command lines entered by the user.

How to display the Windows Command Prompt command

To display the Windows command Windows command prompt, the steps are as follows:

  • Press the combination key on the Start + R keyboard
  • Type RUN Command “cmd” without quotation marks
command prompt

open cmd

  • Press Enter or click OK
  • Appears Windows Command Prompt window box as shown below. After that, you can start working with the input of a command what will be done
cmd windows

cmd windows

  • For example, to display commands in a command prompt, type Help syntax and then press Enter on the keyboard
  • The results of Syntax Help are As follows
windows command prompt

syntax help on windows command prompt

Example Function and usability of Windows Command Prompt Syntax

There are a Lots of functions and usability of the command prompt. The following is a collection of command prompt syntax that we sort by alphabetical.

Previously, here we provide some basic Windows command prompt syntax as basic commands that are often used by computer users.

COPY

The copy command is used to save the file the general form of this command is copy: D for example

  • A: \> COPY ** C: The command to copy standard A files into Drive C
  • A: \> COPY DATA: The command to copy files named data and A to C
  • A: \> COPY E LETTER G: The command to copy a file named mail from drive E To G
  • A: \> COPY? D ** F: The command used to copy files that letter Both D from drive C to drive F

DIR

The DIR command used to view the contents of the DIR general form folder / directory can be described as follows: DIR (drive 🙂 (path) (file name) (/ P) (/ N0 (/ A) ((:) Attribute) (/ O) (/ c: shocked) (/ S) (/ B) (/ L ) (/ C) (/ H)

Options that run on the DIR command are as follows:

  • / P: To display the filename of the page display vertically.
  • / N: To display the filename horizontally.
  • / A: To show all the files, if the file will be displayed to be hidden added attribute + H
  • / O: To display the file in sequence
  • N: (by file name)
  • E: (by file type (extention))
  • S: (by size from the smallest to the largest)
  • D: (meurut date and time modification to restore instructions)
  • / S: To show the file from the root of the sub directory
  • / B: To display the directory files line by line
  • / L: To display directory files in lower case
  • / C: To display the operating ratios for example
  • C: \> DIR to display the root in the directory
  • C: \> DIR to display the file name bserta smua extonsinya
  • C: \> DIR / W to mnampilkan filename spread
  • C: \> DIR / A to display the nma files contained in drive A

MD (MKDIR)

Used to create subdirectories, common form MD: MD d: [filename].

  • C: \> BACKUP: create a sub with the backup name

CD

Used as perint ah moved directory / changed directory.

  • C: \> CD \ ENTERTAINT: moved to the ENTERTAINT subdirectory

MOVE

Used to move files, this command is also in use to replace the name dirtektori and file names are on move.MovE general form.

MOVE [DRIVE] [PATH] [FILE NAME] [DRIVE] [PATH] [FILE NAME] eg:

  • C: \> MOVE C: \ SALES.XLS.C: \ DATA

Move the file with the sales name xls.ke to the DATA sub directory on drive C

DEL

Used to delete files / subdirectory of general form DEL: FILE NAME

  • A: \> DEL * .DOC: The command to delete all files ending in doc.pd drive A
  • A: \> DEL **: The command to delete all filenames in drive A with all his words.
  • A: \> DEL? G *: The command to delete file names of both letters and With all the extensions.

REN

Used to replace file.General form REN: REN (:( filename) (new file name) for example:

  • C: \> RENA: letter DOC.DATA.DOC
  • All doc. Letter files on drive A are changed to DATA DOC

RD

Used to delete a directory. To delete a directory, the position of the subdirectory deletion command must be outside the subdirectory to be deleted. The subdirectory to be deleted must be completely empty, once the entire directory is deleted first using the DEL ** command and then move to the root directory do the CD command.

To end the job in the Ms-DOS prompt we can just type EXIT after promt C: \> EXIT and ENTER.

Full syntax from A to Z Windows Command Prompt

Below is a syntax of Windows command prompt and alphabetical function

A

  • ADDUSERS: Add user list for / from CSV file
  • ARP: Address Resolution Protocol
  • Assoc: Change the file extension association
  • ASSOCIAT: One of the file association steps
  • Attrib: Change file attributes

B

  • Bootcfg: Edit Windows boot settings
  • BROWSTAT: Get domain, browser info and PDC

C

  • CACLS: Change file permissions
  • CALL: Call one other batch program
  • CD: Changing Directory – moving to a specified Folder
  • Change: Replace Terminal Server Session properties
  • CHKDSK: Check Disk – check and fix disk problems
  • CHKNTFS: Check the NTFS file system
  • CHOICE: Accepts keyboard input to a batch file
  • CIPHER: Encrypt or Decrypt files / folders
  • CleanMgr: Ototmatis clean up Temp files, recycle bin
  • CLEARMEM: Remove memory leak
  • CLIP: Copy STDIN to Windows clipboard.
  • CLS: Clear the screen (Clear The Screen)
  • CLUSTER: Windows Clustering
  • CMD: Start a new CMD shell
  • COLOR: Changes the color of the CMD window
  • COMP: Compare the contents of two files or sets of files
  • COMPACT: Compress files or folders on an NTFS partition
  • Compress: Compress single file on an NTFS partition
  • CON2PRT: Connect or disconnect with Printer
  • CONVERT: Convert FAT to NTFS drive
  • COPY: Copies one or more files to another location
  • CSCcmd: clien-side caching (Offline Files)
  • CSVDE: Import or Export Active Directory data

D

  • DATE: Display or set the date
  • Defrag: Defragment the hard drive
  • DEL: Delete one or more files
  • DELPROF: Delete NT user profile
  • DELTREE: Delete folder and all subfolders
  • DevCon: Device Manager Command Line Utility
  • DIR: Displays a list of files and folders
  • DIRUSE: Show disk usage
  • DISKCOMP: Compare the contents of two floppy disks
  • Diskcopy: Copy the contents of one diskette to another
  • DISKPART: Disk Administration
  • DNSSTAT: DNS Statistics
  • DOSKEY: Edit the command line, remember commands, and create macros
  • DSADD: Add User (computer, group ..) to Active Directory
  • DSQUERY: List of items in active directory
  • DSMOD: Change user (computer, group ..) in active directory
  • DSRM: Remove items from Active Directory

E

  • ECHO: Displays message in layer
  • ENDLOCAL: End localisation environment changes in batch file
  • ERASE: Deletes one or more files
  • EVENTCREATE: Add a message to the Windows event log
  • EXIT: Quit the current / routine script and set errorlevel
  • EXPAND: uncompress file
  • Extract: uncompress file CAB

F

  • FC: Compare two files
  • FIND: Looks for a text string in a file
  • FINDSTR: Find the string in the file
  • FOR / F: command repetition of a set of files
  • FOR / F: command repetition of another command result
  • FOR: loop commands for all options Files, Directory, List
  • FORFILES: Process Batch multiple files
  • FORMAT: Format the disk
  • FREEDISK: Check the remaining free disk space / disk (in bytes)
  • FSUTIL: File and Volume utility
  • FTP: File Transfer Protocol
  • FTYPE: Show or modify file types used in file extension associations

G

  • GLOBAL: Display global group membership
  • GOTO: Direct a batch program to jump to labeled line
  • GPUPDATE: Update Group Policy settings

H

  • HELP: Online Help

I

  • ICACLS: Change file and folder permissions
  • IF: Conditional commands
  • IFMEMBER: Is the current user in a NT Workgroup
  • IPCONFIG: Configure IP

K

  • KILL: Remove program from memory

L

  • LABEL: Edit the disk label
  • LOCAL: Display membership of local groups
  • LOGEVENT: Write text to NT event viewer
  • Logoff: user log off
  • LOGTIME: logs the date and time in the file

M

  • MAPISEND: Send email from the command line
  • MBSAcli: Baseline Security Analyzer
  • MEM: Display memory usage
  • MD: Create a new folder
  • MKLINK: Create a symbolic link (linkd)
  • MODE: Configure the system device
  • MORE: Display output, one screen at a time
  • MOUNTVOL: manages the volume mount point
  • MOVE: Move files from one folder to another
  • MOVEUSER: Move users from one domain to another
  • MSG: send a message or message
  • MSIEXEC: Microsoft Windows Installer
  • MSINFO: Windows NT diagnostics
  • MSTSC: Terminal Server Connection (Remote Desktop Protocol)
  • MUNGE: Find and Replace text in file (s)
  • MV: Copy in-use file

N

  • NET: Manage network resources
  • NETDOM: Domain Manager
  • Netsh: Configure Network Interfaces, Windows Firewall & Remote Access
  • NETSVC: Command-line Service Controller
  • NBTSTAT: Show network statistics (NetBIOS over TCP / IP)
  • NETSTAT: Display networking statistics (TCP / IP)
  • NOW: Current view Date and Time
  • NSLOOKUP: Server lookup name
  • NTBACKUP: Backup folder to tape
  • NTRIGHTS: Edit user account rights

P

  • PATH: Displays or sets the search path for the executable file
  • PATHPING: network path traces plus latency and loss packages
  • PAUSE: imprisons (suspends) processing of batch files and displays messages
  • perms: Show permissions for users
  • PERFMON: Performance Monitor
  • PING: Test the network connection
  • POPD: Returns the previous value of the current directory that is stored by PUSHD
  • PORTQRY: Display ports and services status
  • Powercfg: Configures power settings
  • PRINT: Prints a text file
  • PRNCNFG: Display, configure or rename the printer
  • PRNMNGR: Add, delete, list printer set default printer
  • PROMPT: Change the command prompt
  • PsExec: Remote process Execute
  • PsFile: displays files opened remotely (remote)
  • PsGetSid: Displays the SID of a computer or user
  • PsInfo: List of information about the system
  • PsKill: deadly process by name or process ID
  • PsList: List of detailed information about the processes
  • PsLoggedOn: anyone who logs on (local or through resource sharing)
  • PsLogList: log event records
  • PsPasswd: Change account password
  • PsService: View and manage services
  • PsShutdown: Shutdown or reboot the computer
  • PsSuspend: Suspend process
  • PUSHD: Save and then change the current directory

Q

  • QGREP: Find file (s) for rows that match a certain pattern

R

  • RASDIAL: Manage RAS connections
  • RASPHONE: Manage RAS connections
  • Recover: repair damaged files from damaged disk
  • REG: Registry = Read, Set, Export, Delete keys and values
  • REGEDIT: Import or export registry settings
  • Regsvr32: Register or unregister a DLL
  • REGINI: Change Registry Permissions
  • REM: Record comments (comments) in a batch file
  • REN: Rename a file or a file
  • REPLACE: Replace or update one file with another
  • RD: Delete folder (s)
  • RMTSHARE: Share folder or printer
  • Robocopy: Copy Files and Folders perfectly
  • ROUTE: Manipulate network routing table
  • RUNAS: Run the program under a different user account
  • RUNDLL32: Run DLL command (add / remove print connections)

S

  • SC: Control Services
  • SCHTASKS: Schedule commands to run at a specified time
  • SCLIST: Show NT Service
  • SET: Display, set, or delete environment variables
  • SETLOCAL: Control environment visibility variable
  • SETX: Set the environment variable permanently
  • SFC: System File Checker
  • SHARE: List or edit share or share print files
  • SHIFT: Shift position replaced parameters in a batch file
  • SHORTCUT: Create a shortcut window (.LNK file)
  • SHOWGRPS: The NT Register Workgroups a user has joined
  • SHOWMBRS: List of Users who are members of a Workgroup
  • SHUTDOWN: Shutdown computer
  • SLEEP: Wait for x seconds
  • SLMGR: Software Licensing Management (Vista / 2008)
  • SOON: Schedule commands to run in the near future
  • SORT: Sort input
  • START: start a program or command in a separate window
  • SU: Switch User
  • SUBINACL: Edit Permissions, Ownership and Domain files and folders
  • SUBST: Associate the path with the drive letter
  • Systeminfo: List of system configurations

T

  • TASKLIST: List of running applications and services
  • TASKKILL: Remove running processes from memory
  • TIME: Displays or sets the system time
  • TIMEOUT: processing delays from a batch file
  • TITLE: Sets the window title for the cmd.exe session
  • TLIST: task list with full path
  • TOUCH: replace timestamps file
  • Tracert: Trace route to a remote host
  • TREE: Graphical view of folder structure
  • TYPE: Displays the contents of a text file

U

  • USRSTAT: List of domain usernames and last login

V

  • VER: Show version information
  • VERIFY: Make sure that the file is saved
  • VOL: Displays a disc label

W

  • WHERE: Puts and displays files in a directory tree
  • WHOAMI: Output current UserName and domain management
  • WINDIFF: Compare the contents of two files or sets of files
  • WINMSD: Windows diagnostic system
  • WINMSDP: Windows diagnostic system II
  • WMIC: WMI Command

X

  • XCACLS: Change file and folder permissions
  • XCOPY: Copy files and folders

Hopefully by knowing the various syntax Windows Command Prompt can simplify you in working with computer. Finally, we wish you to work with Windows Command Prompt syntax

Leave A Comment