Computer Repair

Learn about what makes your computer work on the inside and how to fix it. More »

Windows Computer Tips

How to guides for Windows PCs. Tips and tricks to make your Windows computer easier to use. More »

Network Security

Learn how cyber criminals target your computer and ways to stay safe online. More »

Laptop and Mobile Computing

Computer answers about laptop computers and mobile computing. More »

 

7 Tasks Command Prompt Makes Fast and Simple

Command prompt is easier than you thought.

Command prompt is easier than you thought.

Make Your Life Easier, More Efficient and Effective with These Commands

Do not let command prompt intimidate you. It is more useful and simpler than you may think. There are times when running a specific command is faster to perform certain tasks. Most likely, you will be pleasantly surprised at what you can accomplish using a couple of keystrokes.

Run Programs Easily

Running programs from command prompt is easy. First, create a folder with the name Shortcuts. You will use this folder to hold shortcuts allowing quick access to programs on your computer. After this folder is created, it needs to be added to the computers PATH environmental variable:

  • Select Properties after right clicking on My Computer
  • Select Advanced System Settings
  • Select Environment Variables on the Advanced tab
  • Below System Variables, edit the variable named PATH. On the end of variables value, add ;C:\Shortcuts 
  • Below System Variables, edit the variable named PATHEXT. On the end of variables value, add ;.LNK
  • Select OK

Next, create shortcuts for the programs you want to use placing them in the folder you created. Rename these shortcuts as a command with one word. When command prompt is now opened, these programs will run using these shortcut names.

Local Drives Renamed

A fast way for changing your computers drives names is by using label command like so:

  • label [drive:] [name]

For instance, if I want to change the name of the drive to “iqcomputerservice” I would enter this command:

  • label C: iqcomputerservice

Hard Drives Defragmented

Although not used as much as it used to be, defragmenting is still important for older systems. Solid state drives do not need defragmenting. Command for defrag is done as follows.

  • defrag [drive]

That’s it. You can have progressed printed out to the prompt with:

  • defrag [drive] /u

To add even more information, verbose switch can be toggled:

  • defrag [drive] /u /v

Health of Hard Drive Monitored

Command that checks the disk (chkdsk) scans the hard drive testing it for possible issues such as physical damage or corrupted data.

  • chkdsk [drive:]

To set it to fix and recover is simple:

  • chkdsk [drive:] /F /R

Eject Eternal Drives

For times when there is no other possible choices to open drives you can use disk partition command (diskpart command). When this prompt is ready, type list volume. Note each drives ###. Type select volume [###] having the drive you want opened entered here. Type remove all dismount and then exit. Be sure only drives that are removable are selected.

File Contents Searched

You can find files by what text is located in them by using findstr command. Here is an overview of the several ways it can be changed https://technet.microsoft.com/en-us/library/bb490907.aspx

File Associations Changed

Windows uses file formats to associate programs. To edit and view these file associations, assoc command is used.

View extension association:

assoc [.ext]

Clear extension association:

assoc [.ext]=

Set extension association to a different filetype:

assoc [.ext]=[filetype]

This is only scratching the surface of what can be done with command prompt. You can take control of just about every aspect that there is when you put your mind to it. Make sure you’re keeping up on your computer’s maintenance and get the most for what it provides you with.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.