Ten Awesome Windows 7 Command Line "CMD Prompt" Commands

Updated on December 19, 2016
Tired of the standard black CMD screen? Why not try blue?
Tired of the standard black CMD screen? Why not try blue?

So you've read Part 1 of this Windows Series Ten Best Windows 7 Command Line "CMD" Commands to get you started, and want some more? Excellent!

In part 1, I introduced you to the CMD prompt, and gave you some basic Windows commands and useful tips: How to copy and paste to and from the command console, help, ipconfig for network info...)

In part 2 of this series, "Ten Best Windows 7 Command Line "CMD" Commands - Part 2", we'll dig a little deeper and I'll show you 10 even more useful Windows 7 Commands (CMD's) to master.

Ready? Grab your favorite energy drink and Let's get started!

Note - Looking for Windows 7 and 8 "Run" Commands? Check out my Best Windows 8 Run CMD article here.

1. Time. Need to sync the clock on your PC? The easiest way is from the Windows 7 Command line. Simply type Time and you'll be prompted to enter the new time. If you don't wish to change the time, simply close the window.

2. CMD. Sometimes you may need to open a new CMD window. Type CMD and you'll have your fresh window. TIP -- To open a new window you can also type Start. If you just want to clear your screen within the same window, type CLS. (CLS = Clear Screen).

3. Color. Tired of the Same Old Black and White look? First type Color /? to get a list of options. You will enter two choices, the first is for the background color, the second is for the text letters. Typing Color 1F gave me Blue with White letters. TIP - If you wish to change the default color scheme of the CMD interface, the easiest way is to right click the top bar and go to "Properties". Then use the "Colors" tab to choose the background and text colors.

4. Tree. This is one of my favorites. Type TREE within any particular directory, such as C, and you will get a detailed Tree structure of that directory and subdirectories. Type Tree when you first open your CMD line interface and you will see the directory structure of your user profile. TIP - if you run out of room, (like I did while testing TREE in my profile), and the output gets truncated, right click the top bar, and go to "properties". Next go the "Layout" tab. Change the default height setting of 300 to something larger. I used 500.

5. Robocopy. Robust File Copy for Windows. In my first Windows 7 CMD Line hub, I mentioned XCOPY. Now we can explore Robocopy. Starting with Windows Vista, Robocopy has been added as a default feature of the Command Line tool. Robocopy has some advantages over XCOPY, such as a progress indicator, the ability to tolerate network interuptions and a very nice output that gives a count of files that were copied, missed, or skipped. You can read more about the Robocopy command here. In my picture I used the same syntax as my XCOPY examples, with the /s and /e switches.

Robocopy (robustcopy) is one of the most useful Windows 7 Commands you can use. Tip - You can also download the Windows resource kit for older versions of Windows.
Robocopy (robustcopy) is one of the most useful Windows 7 Commands you can use. Tip - You can also download the Windows resource kit for older versions of Windows.

6. Resource Monitor. Want a fast way to check the performance of your PC? Try typing PERFMON /RES. This Windows 7 Command will take you right to the Resource Monitor window. TIP - You can also access the Resource Monitor from the Windows 7 Task Manager Console. Right click the bottom bar on your desktop, select "Start task manager", then go to the "Performance" Tab. Then click the tab that says "Resource Monitor".

7. Defrag. Anyone who has been around Windows PC's for a while knows (or should know) the importance of an occasional Defrag. One of the best analogies I ever heard was to liken a defrag to "putting the library books back on the shelf where they belong". You can start by typing Defrag /? for a list of options. DEFRAG /C /V /V will give you a nice output.

Did you know you can defrag right from the Windows 7 CMD Line?
Did you know you can defrag right from the Windows 7 CMD Line?

8. Find. Did you know you can search from your Windows 7 CMD prompt?. First type Find /? for a list of options and correct syntax. An example would be: Find /C "test" to search all volumes for strings that contain "test". Make sure you enclose the text in quotes.

9. CTRL + C. Tired of waiting for the search results with the Find command? Hitting CTRL + C will end the current task and put you back at your prompt (without closing the window).

10. Shutdown. You can shutdown your own PC or any PC on the network right from the command line. Start by typing Shutdown /? for a list of options. If I want to restart my PC, I would type shutdown /r. If I want to shut it off, I would type shutdown /s. You will see a message window pop up that says the computer will be shutting down in less than a minute.


Questions & Answers

    Comments

      0 of 8192 characters used
      Post Comment

      • howlermunkey profile imageAUTHOR

        Jeff Boettner 

        3 years ago from Tampa, FL

        Hi stfu, what, you no like the cmd prompt? You one of those who thinks powershell is better? (well it is actually) :) , but the cmd prompt does have its uses

      • profile image

        stfu 

        3 years ago

        motherfuckerrrrrrrrrrrrrrrr

      • howlermunkey profile imageAUTHOR

        Jeff Boettner 

        6 years ago from Tampa, FL

        Thanks cleverowlsoftware :)

      • chefmancave profile image

        Robert Loescher 

        6 years ago from Michigan

        Windowspain...Your comments suggest that the Command Prompt is old and decrepit. Actually, it is one of the best tools for diagnosing issues with your computer. I use it daily at work where I troubleshoot PC and network issues.

        I would have liked to see a brief mention of the NETSTAT, CHKDSK and NET commands.

        If you are command line geeks, you should read my article on Windows Scripting Host and AutoIt.

      • howlermunkey profile imageAUTHOR

        Jeff Boettner 

        6 years ago from Tampa, FL

        Thanks Window pain!

      • Window Pain profile image

        Window Pain 

        6 years ago

        "Typing Color 1F gave me Blue with White letters."

        ARRRGHHGHGH!!! The Blue Screen of Death!

        Another great Hubpage howlermunkey! Excellent tips. Believe it or not people, there will be times when Windows just won't run and you're gonna(sp) need these tips. (HINT: print them now, not "later")

        Reading your tips brought back memories of my first computer experiences in the early 80s before Windows had a GUI. (okay) Graphical User Interface (pointing and clicking on objects with a mouse).

        We were faced with a monochrome screen, 8086 processor, and if you were really cool, a hard drive instead of a two floppy system.

        Some of those hard drives were a staggering 40 Megabytes, which we excitedly explained to anyone who'd listen, is "Huge, man! more than we'll EVER need!!"

        Of course all those hippies on Apples were really smug until Windows 3.0 (then 3.1) came along. Then we could point and click, and then every moron (oops, sorry) I meant "all the common folk" could get in on the computer craze.

        And the rest is history.

        Oh yeah, great tips howlermunkey! Keep posting them.

      working

      This website uses cookies

      As a user in the EEA, your approval is needed on a few things. To provide a better website experience, turbofuture.com uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

      For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at: https://turbofuture.com/privacy-policy#gdpr

      Show Details
      Necessary
      HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
      LoginThis is necessary to sign in to the HubPages Service.
      Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
      AkismetThis is used to detect comment spam. (Privacy Policy)
      HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
      HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
      Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
      CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
      Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the googleapis.com or gstatic.com domains, for performance and efficiency reasons. (Privacy Policy)
      Features
      Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
      Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
      Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
      Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
      Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
      VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
      PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
      Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
      MavenThis supports the Maven widget and search functionality. (Privacy Policy)
      Marketing
      Google AdSenseThis is an ad network. (Privacy Policy)
      Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
      Index ExchangeThis is an ad network. (Privacy Policy)
      SovrnThis is an ad network. (Privacy Policy)
      Facebook AdsThis is an ad network. (Privacy Policy)
      Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
      AppNexusThis is an ad network. (Privacy Policy)
      OpenxThis is an ad network. (Privacy Policy)
      Rubicon ProjectThis is an ad network. (Privacy Policy)
      TripleLiftThis is an ad network. (Privacy Policy)
      Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
      Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
      Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
      Statistics
      Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
      ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
      Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)