• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

TECHDIIP

  • Tech
  • Windows
  • Powershell
  • Scripts
  • News
  • Games

DOS CMD Commands With Syntax and Examples

DOS Commands, there many commands available in DOS and we can equally perform the operation as we do with GUI, in this article we explain important DOS commands that every windows user should know. It is equally important that windows administrator must learn the DOS commands to manage the computers, there are two types of commands, internal commands built-in with command shell do not have separate executable files, whereas external commands have their own executable files and are located in %SystemRoot%\System32 directory. Here are the important commands one must learn to become a system administrator. assoc This command displays or modifies the current file extension associations. call This is a very important command when you Call a procedure or another script from within a script. cd The command CD stands for change directory, it displays the current directory name or changes the location of the current directory. cls The command CLS stands for the clear screen, It clears the command window and erases the screen buffer. color The command used for setting the text and background colors of the command-shell window. copy The command copy most frequently used command on daily basis, it copies files from one location to another or concatenates files. date The command displays or sets the system date. del This command Deletes the specified file, files, or directory. dir This command displays a list of subdirectories and files in the current or specified directory. echo This command displays text strings to the command line; sets command echoing state (on | off). endlocal This command Ends localization of variables. exit This command exits the command shell. for This command runs a specified command for each file in a set of files. ftype This command displays current file types or modifies file types used in file extension associations. goto This command directs the command interpreter to a labeled line in a batch script. if This command performs conditional execution of commands. md This command most useful on daily basis, it creates a subdirectory in the current or specified directory. mklink This command creates either a symbolic or a hard link for either a file or a directory. move This command moves a file or files from the current or designated source directory to a designated target directory. It can also be used to rename a directory. path This command displays or sets the command path the operating system uses when searching for executable and scripts. pause This command suspends the processing of a batch file and waits for keyboard input. prompt This command sets the text for the command prompt. pushd This command saves the current directory location and then optionally changes to the specified directory. rd Most useful command, it removes a directory or a directory and its subdirectories. rem Sets a remark in batch scripts or Config.sys. ren This command renames a file or files. set This command displays current environment variables or sets temporary variables for the current command shell. setlocal This command marks the start of variable localization in batch scripts. shift This command shifts the position of replaceable parameters in batch scripts. start This command starts a separate window to run a specified program or command. time This command displays or sets the system time. title This command sets the title for the command-shell window. type This command is most useful on daily basis task execution, it displays the contents of a text file. verify This command is most useful on daily basis task execution it causes the operating system to verify files after writing files to disk. vol This command displays the disk’s volume label and serial number. Thank you for reading this article, if you have any questions please let us know. Thank you for visiting my site, for any scripts in these articles you are testing please make sure you have tested this script in our lower environment before you run in production.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Recent Posts

  • How do Zoom Application Testing | Working or Not
  • Powershell script to test website status up or down on a local or remote computers
  • Solved: Server execution failed windows 10 Server 2016 and 2019
  • How to Fix windows 10 version 1903 error 0xc1900223
  • Free Music Making Software List One Can Try Out
  • About Us
  • CONTACT US
  • Disclaimer
  • Privacy Policy

Copyright © 2023 techdiip.com