Skip to content

5000+ Great Articles

Best Articles & Essays: Interesting Articles to Read Online

  • How to Fix a Slow MacBook in 5 Easy Ways Tutorials
  • What is Agent.exe and is it safe for use? Windows 10
  • Fix “There was a problem sending a command to the program” Error How-To
  • A Beginner’s Guide To Paint.NET & How Does It Differ From Photoshop? Software Reviews
  • How to uninstall Avast antivirus on Mac Tutorials
  • Best food scale with nutritional calculator 2020 black
  • 15 Best Amazon Fire Stick Apps You Should Install First

    Amazon's Fire Stick is a popular way to convert your non-Smart TVs to Smart TVs. It's based on Android and gives you access to a number of popular T

  • How To Fix Outlook Keeps Asking For Password Issue Office Tips

Beginner’s Guide to the Windows Command Prompt

Posted on October 6, 2020 By blog_786 No Comments on Beginner’s Guide to the Windows Command Prompt

Earlier today I had to boot the client computer in Safe Mode and remove the virus via the command line, because whenever Windows was booted, the file was blocked and therefore could not be deleted! There are several other reasons why you may need to use the command line in your life (albeit rarely), so it’s good to know how to navigate!

If you wanted to learn how to use the command prompt on Windows, I will cover some of the basic commands that are executed most frequently. To keep everyone on the same page, you can go to the command prompt by choosing Start, then clicking Run and typing CMD. In Windows 7, just click Start and start typing cmd. In Windows 8, you can simply right-click the Start button and select Command Prompt.

Now you will see a large black window with a cursor at the end of your profile path username in C: Documents and Settings Username or C: Users Username. So what to do now !? Well, since I can’t explain everything, you probably want to use some of the reference guides that are provided in MS DOS itself by typing HELP and pressing Enter.

When you do this, you will receive a list of all the commands you can use in MS DOS and a short description of what they do:

You can also find out more information about parameters and how to use each command by entering the command name followed by a /?. For example, typing CD /? Will give you a quick guide to using the CD command:

As you can see from above, a CD with with MS DOS commands, displays the name or changes the current directory. Therefore, if you want to change from the default user profile directory to the Windows System32 directory to remove the virus file, you must enter the following to change to that directory:

cd c: window system32 and press Enter.

Your current directory in the query will now change to:

Now that you are in that directory, you can first view all files and directories, so you can type DIR and press Enter. Now you will get a huge list of all files and folders in that directory. Can you enter DIR /? and see what parameters you can pass to it.

As you can see, you can enter DIR / P to get the list in a paginated format that can be viewed slowly. Or you can enter DIR / W to get the list in a wide format rather than a single column. The great thing about DOS is that you can enable multiple options for each command, so you can type DIR / P / W and get a page view along with a wide format:

So now that we have a list of files and folders, let’s proceed with removing the virus example. If you want to delete a file, you must use the DEL command. Typing DEL / again? will provide you with useful information about the team.

To delete a file, we can simply enter DEL filename and the file will be deleted. When you use the command this way, it will not prompt you for confirmation before deleting the file, so make sure you enter the correct file name. In addition, you must enter a filename with an extension to delete that file using DEL Test.txt. Also, if you need to delete a file with spaces in the name, you must use quotation marks, for example DEL “This is test.txt”.

If you need to create or delete folders, you must use the MKDIR and RMDIR commands. It’s worth noting that if you try to delete a non-empty directory, you will receive an error message. However, if you are sure you want to delete the directory and everything inside, you can use the RMDIR / S foldername command.

There are many other commands that you can use to do all sorts of things like copying files, printing text files, changing file permissions, etc. So, if you can do most of these things on Windows using a graphical interface, then why bother with DOS, right?

First, you never know when something is going to happen to Windows, and you are stuck at the command line because nothing else loads. In addition, any command that you enter on the command line, as we showed above, can be saved to a file with the .BAT extension and run at any time by simply clicking the file, or you can schedule the launch using the Windows Scheduled Tasks Control Panel applet.

Therefore, if you want to be able to regularly perform some simple actions on your computer, for example, copy files from one folder to another, just enter commands in Notepad and save the file with the .BAT extension instead text file. Typically you will need to select “All Files” for “Save as type” and then enter a name like “MyFile.bat” with quotation marks.

Let me mention a couple more commands that are very often very useful.

IPCONFIG

Beginner’s Guide to the Windows Command Prompt

The IPCONFIG command provides you with information about your network cards, IP addresses, and also allows you to update your IP address. My favorite is ipconfig / all, which will give you detailed information about every network adapter on your computer. Then you can use this information to find out the IP address of your router (default gateway) and whether you get the IP address from the DHCP server.

Beginner’s Guide to the Windows Command Prompt

Tablet

Again, when you are having problems with your hard drive, this command can be very helpful. DISKPART allows you to manage the hard drives installed on your computer. You can make such a partition active, assign a drive letter to it, shrink the disk, take it offline or online, etc.

Beginner’s Guide to the Windows Command Prompt

SFC

The System File Checker is really useful because it scans all protected system files and replaces the wrong versions with the correct file versions. There will be many times when certain system files in Windows turn out to be corrupted and the System File Checker will fix them easily. You just run sfc / scannow and it will scan and fix any issues. It will take quite a while, but it will be worth it if you run into any damage issues.

A couple of other very useful commands you may need to use are listed below:

  • chkdsk – Checks the hard disk or floppy disk for file system integrity.
  • copy – Copies files from one location to another. By default, the current directory is used as the destination. If there are multiple source files, the destination must be a directory, otherwise you will receive an error message.
  • fc – Compares two files or sets of files and displays the differences between them.
  • fdisk – manipulates hard disk partition tables. When run from the command line, it displays a menu of various partitioning operations.
  • format – delete all files on the disk and reformat it for MS-DOS. Used primarily for formatting floppy disks or other removable drives.
  • scandisk – Disk diagnostic utility that replaces the CHKDSK utility.
  • netstat – Shows all current connections from your local computer. computer to everything external.

Hope this helps you learn how to use and navigate the MS DOS command line! You can also visit this site for a list of all the commands you can use on the command line. If you have a question, please leave a comment! Enjoy!

–

Share this:

  • Twitter
  • Facebook
Computer Tips Tags:SFC, Tablet

Post navigation

Previous Post: How to Boost and Increase Your Internet Speed
Next Post: How to Open Files in Windows with Different File Extensions

Related Posts

  • 5 Serious Health Issues From Sitting Too Long & How To Avoid Them Computer Tips
  • How to Schedule Emails to Be Sent Later Computer Tips
  • How to Restore a Dead or Dying Laptop Battery Computer Tips
  • How to Fix Choppy Videos on YouTube – 2022 Computer Tips
  • Wiping a Hard Drive in 4 Easy Steps Computer Tips
  • OTT Explains : What Is a Facebook Pixel? Computer Tips

Leave a Reply Cancel reply

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

Archives

  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • March 2021
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • December 2019
  • July 2019
  • May 2019
  • April 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018

Categories

  • AI Tools & Guides
  • Amazon Web Services
  • Apple Watch
  • Computer Tips
  • Cool Websites
  • Featured Posts
  • Free Software Downloads
  • Gadgets
  • Gaming
  • General Software
  • Google Software/Tips
  • Hardware
  • Help Desk
  • How-To
  • iOS
  • iPad
  • iPhone
  • islamic Books
  • Linux
  • Linux Tips
  • Mac OS X
  • macOS
  • MS Office Tips
  • Networking
  • Office Tips
  • OS X
  • Product Reviews
  • Reviews
  • Safari
  • Smart Home
  • Smartphones
  • Software Reviews
  • technology
  • text
  • Tools Review
  • Troubleshooting
  • Tutorials
  • Uncategorized
  • Urdu Books PDF
  • Web Site Tips
  • Windows
  • Windows 10
  • Windows 7
  • Windows XP Tips
  • Wordpress
  • 10 Things to Check Before Publishing a YouTube Video
  • A Simple Trick to Get 50% Discount on Audible for Three Months
  • How to reset your SIM card
  • This Simple Trick Lets You Play YouTube in the Background on iOS
  • How to go Back to the old YouTube Layout (2013)
DMCA.com Protection Status

Recent Posts

  • How to Get 2 Free Audiobooks From Audible Trial Instead of 1
  • 10 Things to Check Before Publishing a YouTube Video
  • MailTag: Real-time Email Tracking, Made Easy
  • Pokemon Sleep: what is it and how to play
  • How to Respond to Messages on Instagram (Mobile and PC)

Recent Comments

  1. This Simple Trick Lets You Play YouTube in the Background on iOS on YouTube Not Working? Here Are Quick Fixes To Try
  2. How to Bypass Chromecast DNS and Circumvent Geo Blocking on 5 Cool Websites to Find Good Movies and TV Shows on Netflix
  3. 5 Cool Websites to Find Good Movies and TV Shows on Netflix on check netflix video quality internet explorer
  4. SmartDNS vs VPN “What’s the Difference?” on How to Watch Apple TV on Roku
  5. How to go Back to the old YouTube Layout (2013) on 10 Things to Check Before Publishing a YouTube Video
  • How to fix “We need to fix your Microsoft account” error Windows 10
  • How to Fix Roblox Error Code 524 Gaming
  • Third-Party Tools Which Do Better Than Some Of MacOS’ Default Apps OS X
  • Format Cells using Conditional Formatting in Excel MS Office Tips
  • Best heavy duty calculator 2020

    Best heavy duty calculator 2020. 1 - Pismire RUGCEL Winch 10T Heavy Duty Recovery Winch Snatch Block, 22000lb Capacity Top Reviews

  • Best Subreddits for Women 2022 technology
  • How to Enable On-Screen Keyboard on Windows 10 Windows 10
  • How to Encrypt USB Drive Using VeraCrypt How-To

Copyright © 2023 How To Blog.

Powered by PressBook News WordPress theme

Go to mobile version