Hello Guys! and Welcome Back to the WW5WW. Windows Command Prompt Basic Commands is today what I’m going to talking about. In This Tutorial, I’m Gonna Show You Some Basic Commands and how to Begin Working With Windows Command Prompt. In The First Tutorial, I Told you Windows Command Prompt Interpreter Used A Language Looks Like Basic Programming Language.
What is BASIC?
BASIC is a High-Level General-Purpose Programming Language. BASIC’s whose design philosophy emphasizes ease of use.BASIC Was Not a Case Sensitive Programming Language. That Mean If You are Using Case Sensitive Language. And You Defined Two Keywords Looks Like This.
“NAME & name“, These Words will Define as a Different Words in the Case Sensitive Languages. Some other languages like BASIC. They were Defined as these two words, not different. And these words are the same. I Think Anyone Can Get an Idea From That. This is a Brief Introduction About Windows Command Prompt Interpreter Language. And now we will try some basic commands. Fire it up Your Command Prompt Window and Let’s Begin.
HELP command will provide, All help Documentations About Commands in Windows Command Prompt. The HELP Command will provide all of the Windows Command Prompt commands. And it will provide their information. Look at the Picture Given Below, You Can Get Some Idea From That. Now Let’s try it.
Simply type “HELP” On your Command Prompt Window and hit ENTER. Now You Can See All Of Windows Command Prompt Built-in Commands Looks Like A Down Below.
C:\>HELP For more information on a specific command, type HELP command-name ASSOC Displays or modifies file extension associations. ATTRIB Displays or changes file attributes. BREAK Sets or clears extended CTRL+C checking. BCDEDIT Sets properties in boot database to control boot loading. CACLS Displays or modifies access control lists (ACLs) of files. CALL Calls one batch program from another. CD Displays the name of or changes the current directory. CHCP Displays or sets the active code page number. CHDIR Displays the name of or changes the current directory. CHKDSK Checks a disk and displays a status report. CHKNTFS Displays or modifies the checking of disk at boot time. CLS Clears the screen. CMD Starts a new instance of the Windows command interpreter. COLOR Sets the default console foreground and background colors. COMP Compares the contents of two files or sets of files. COMPACT Displays or alters the compression of files on NTFS partitions. CONVERT Converts FAT volumes to NTFS. You cannot convert the current drive. COPY Copies one or more files to another location. DATE Displays or sets the date. DEL Deletes one or more files. DIR Displays a list of files and subdirectories in a directory. DISKPART Displays or configures Disk Partition properties. DOSKEY Edits command lines, recalls Windows commands, and creates macros. DRIVERQUERY Displays current device driver status and properties. ECHO Displays messages, or turns command echoing on or off. ENDLOCAL Ends localization of environment changes in a batch file. ERASE Deletes one or more files. EXIT Quits the CMD.EXE program (command interpreter). FC Compares two files or sets of files, and displays the differences between them. FIND Searches for a text string in a file or files. FINDSTR Searches for strings in files. FOR Runs a specified command for each file in a set of files. FORMAT Formats a disk for use with Windows. FSUTIL Displays or configures the file system properties. FTYPE Displays or modifies file types used in file extension associations. GOTO Directs the Windows command interpreter to a labeled line in a batch program. GPRESULT Displays Group Policy information for machine or user. GRAFTABL Enables Windows to display an extended character set in graphics mode. HELP Provides Help information for Windows commands. ICACLS Display, modify, backup, or restore ACLs for files and directories. IF Performs conditional processing in batch programs. LABEL Creates, changes, or deletes the volume label of a disk. MD Creates a directory. MKDIR Creates a directory. MKLINK Creates Symbolic Links and Hard Links MODE Configures a system device. MORE Displays output one screen at a time. MOVE Moves one or more files from one directory to another directory. OPENFILES Displays files opened by remote users for a file share. PATH Displays or sets a search path for executable files. PAUSE Suspends processing of a batch file and displays a message. POPD Restores the previous value of the current directory saved by PUSHD. PRINT Prints a text file. PROMPT Changes the Windows command prompt. PUSHD Saves the current directory then changes it. RD Removes a directory. RECOVER Recovers readable information from a bad or defective disk. REM Records comments (remarks) in batch files or CONFIG.SYS. REN Renames a file or files. RENAME Renames a file or files. REPLACE Replaces files. RMDIR Removes a directory. ROBOCOPY Advanced utility to copy files and directory trees SET Displays, sets, or removes Windows environment variables. SETLOCAL Begins localization of environment changes in a batch file. SC Displays or configures services (background processes). SCHTASKS Schedules commands and programs to run on a computer. SHIFT Shifts the position of replaceable parameters in batch files. SHUTDOWN Allows proper local or remote shutdown of machine. SORT Sorts input. START Starts a separate window to run a specified program or command. SUBST Associates a path with a drive letter. SYSTEMINFO Displays machine specific properties and configuration. TASKLIST Displays all currently running tasks including services. TASKKILL Kill or stop a running process or application. TIME Displays or sets the system time. TITLE Sets the window title for a CMD.EXE session. TREE Graphically displays the directory structure of a drive or path. TYPE Displays the contents of a text file. VER Displays the Windows version. VERIFY Tells Windows whether to verify that your files are written correctly to a disk. VOL Displays a disk volume label and serial number. XCOPY Copies files and directory trees. WMIC Displays WMI information inside interactive command shell. For more information on tools see the command-line reference in the online help.
That’s a way simply use HELP Command In Command Prompt, And We Can Use This Command To Get More Information About This Commands, Let’s Dive in Again in to Our Command Prompt Window And Now We Trying to get some information about this HELP Command using HELP Command. “What? What is that? Get HELP information about HELP Command using HELP?” What was That?.
HELP Command is a Another Program Configured in Command Prompt. If The HELP Command With a "Some Command" Parameter It Will Provides a Help and Usage Information about That Specific Command.
Go To Command Prompt Window and Now Type “HELP HELP”, Now You Can See some Information About HELP Command, Looks Like This.
C:\>HELP HELP Provides help information for Windows commands. HELP [command] command - displays help information on that command.
I think now you got some idea, about HELP command and how to Use It. Now Let’s Check out Some Other Commands, What We are Mostly Usual to Working With Command Prompt.
The CD Command, Change Directory Command. This Command Used To Change Current Working Directory(Folder). Let’s check How to Use “Change Directory Command”, We Can Use HELP Command For Look at Usage Information about CD Command. Type “HELP CD” and hit Enter. To Get Help information about CD Command. Now You Can See Some Information about CD Looks Like this.
In Windows Command Prompt Interpreter we can use “CD WHERE” to Change Current Directory(Folder). WHERE Mean Where is the Location You Want to Go, What is The Real Location you want to change current working directory. Look At The Example Down Below.
Imagine We Had Some Directory Called 123, That Directory Located in out C:/ Drive Now We Are Going to Checkout How to Change Our Current Working Directory to 123. First Open up Your Command Prompt Window. Now type “CD C:/123” and hit the Enter. And you can see your current working directory Has been Changed now!. Look at the Picture Down Below.
In This Way, We Are Learning To Go Forward Some Directory. And CD can use for Come Back. It’s Not Difficult It’s Very Easy to Remember. The Way is typing “CD ..”Now hit the Enter Key. You Can See You’ve Come Backward in some Directory. That’s All Of About CD – Change Directory Command In Windows Command Prompt. Let’s Looking at some other coolest commands.
In CMD Interpreter uses DIR Command. To Directory Listing and List View Files in a Directory. In This Post I Will Never Dive Deep Into DIR Command Only I’m Show You Simply Overview of DIR Command. In the Future Post I Will Looking at All of Stuff About This Command. OK Now, Let’s Checkout DIR Command. Open Up Your Windows Command Prompt and Type DIR and Hit Enter. Now You Can See all Of the Contents, In Your Current Working Directory including both files and folders. Look at The Picture Down Below You Can Get Some Idea From It.
Loot At the Output On Your Command Prompt Window, You Can see Four Columns In Output. In Order Left to Right. You can see the Date of last modified and The second column is the Time Of Last the Modified. In The Third Column, You Can See The What Type of Object, That’s Mean If it’s a Directory (<dir> Specified) or File. The last Column You Can See The Name Of a Directory or File. In The Top, You Can See Where is the Location/Drive Your Working Directory was Located and Volume Serial Number. And The Bottom, You Can See How Many Files in Your Working Directory and How Many Directories (Sub Directories) were Located in your Current Working Directory. And Also You Can See How Much Free Space Left in Your Volume.
I Think That’s Enough For DIR Command If You Want Get More Information about DIR Command Try HELP Command With Dir, Soon I Will Create Complete Post About DIR Command.
CLS Mean Clear Screen, This CLS Command Used to Clear The Windows Command Prompt Screen, You Can Simply Type CLS and Hit The Enter Key. Now You Can Clear it Out Your Windows Command Prompt Interpreter Screen.
DATE & TIME COMMANDS
In Microsoft Windows, Command Prompt will Provide other Usual Command, For Showing a Date and Time In Your System. And These Commands Can Change Date And Time.
Once You Type “DATE”, On Your Windows Command Prompt and Hit Enter, Then You Can See DATE Command will Provide Currently Configured System Locale Date To You. Also, It will Ask to you “Enter New Date:” Now You Can Config New Date, And If You don’t want to change it, if you Want to Stay With Currently Configured Date Settings, Then Simply Press Enter Key Again. Look At The Picture Down Below.
Another Way We Had to Only See Date That’s way DATE Command Will not Ask Enter New Date. That’s Way We Must Pass an Another Parameter to DATE Command. It Was a /T It Will Provide Date Without Prompting Ask For New Date You Can See it From “HELP DATE” Command Look At the Picture Down Below.
TIME Command Is the Same As DATE Command This Command Will Provides to System Time On Your Command Prompt Window. It’s Looks Like the Same as Date Command. If You Simply Type “TIME” On Your Command Prompt Window And Hit Enter Key Then TIME Command Will Provide Default Configured Time On Your Command Prompt Window and It Will Ask For New Time. Same As DATE Command, If You Want Change time, Then You Can Input New Time or You Wish to Stay With Current Settings Then Press Enter for That. If You Want to See Only The Time Without Prompt Asking “Enter the new time: “, In Same As DATE Command You Should Pass A Parameter for Do That. it Was a “/T”. Look At The Picture Down Below You Can Get Some Idea.
In This Post, I Think HELP, CD, CLS, DATE & TIME Commands are enough for Someones. I Hope You Enjoy With This Post, See You Back Soon In Another Episode of Express Learning With Windows Command Prompt Tutorial in Future.