Command Prompt Tricks, Hacks and Codes

Command Prompt also known as cmd is one of the most important tools in the Windows operating system, it looks plain and confusing at first sight. But has so many functions that can save one from some unexpected issues, programmers and hardware specialist often refer back to the command prompt time to time.

You will find cool and awesome unknown features of the command prompt and some really good tricks that you can use to amuse your colleagues and friends.

Copy items on the command prompt:

Have you ever wondered how you can copy, stuffs you have on your command prompt screen?

Step 1:  Right-click anywhere on your cmd screen

Step 2: Select Mark

The Step 3: Highlight portion you will like to copy with the left mouse click and highlight.

Step 4: Press the Enter button to copy.

Step 5: Paste in any other valid document or program.

Command Prompt Tricks

Star Wars Episode 4 Movie on CMD

This is any trick and fun thing with Command Prompt, an entire episode of star wars 4 can be watched on cmd, you will need to have an internet connection through to watch the movie.

Step 1: Open CMD and enter telnet

Step 2: Press enter to start watching the movie immediately.

For Windows Vista and above, you will need to add or activate Telnet Client, to do this open your control panel, click on Programs and features then Turn windows features on or off. Find Telnet Client and check it, click ok to activate.

Copy File Path from File Drop into CMD

If you need to get a file path easily, you can open cmd, type cd then drag and drop the file into cmd it will automatically display the file path you just dropped. This method prevents you from making silly mistakes that can cost you, your time.

To Shut Down your PC, you can do that with CMD

Step 1: Open cmd

Step 2: Type shutdown/i

The Step 3: Press Enter, a dialog box for windows shutdown will appear.

Step 4; Choose your preferred option.

This method can be used in a network environment, you can display the reason for shutdown and time remaining before shutdown commences.

Run a Two in One Command on cmd

You can run multiple Windows commands in one go from the command prompt. For example, you can start or stop a service from a command prompt by typing “Net Start/Stop.” What if you need to restart a service from the command prompt? In that case, you can use a double ampersand — && — which allows you to run multiple “Net” commands in one line to first stop and then restart the service.

Clear your Clipboard Item

This cool trick will clear all items on your clipboard, your clipboard has the tendency to eat up your memory space. To do this open cmd and type the command Echo Off and there you go. Press enter and you are fine.

Detect those Stealing your WiFi Connection

Command Prompt can let you know if someone is connected to your Local Area Connection and using it. Just follow the steps:-
1) Open your browser and visit or depending on your router.
2) Find the tab that mentions “Attached Devices” or something similar.
3) Find the computer name, IP address and MAC Address (sometimes called Physical Address or Hardware Address) of your computer using the previous trick.
4 )Compare it with those displayed by your router in Step 2.

Detect those connecting to your computer illegally

Command Prompt can help you find if someone you don’t know is connected to your computer stealing private data. Just execute netstat -a and the command prompt will return a list of computers that your computer is connected to.

In the results returned, Proto column gives the type of data transmission taking place (TCP or UDP),

Local address column gives the port with which your computer is connected to an external computer and the Foreign Address column gives the external computer you are connected to along with the port being used for the connection.

State gives the state of the connection (whether a connection is actually established, or waiting for transmission or is “Timed Out”).

Shortcut to run cmd as administrator

Search for cmd on the search bar, Press Ctrl+Shift+Enter and then click on the cmd icon to open as admin, this works for all documents and files on your PC.

Check your Network Information at a glance.

Open Command Prompt and execute ipconfig /all. This will give all information concerning your IP address, host, DHCP server and DNS information.

CMD function key shortcut commands.

F1: Pastes the last executed command (character by character)
F2: Pastes the last executed command (up to the entered character)
F3: Pastes the last executed command
F4: Deletes current prompt text up to the entered character
F5: Pastes recently executed commands (does not cycle)
F6: Pastes ^Z to the prompt
F7: Displays a selectable list of previously executed commands
F8: Pastes recently executed commands (cycles)
F9: Asks for the number of the command from the F7 list to paste

That is not all but this is some of the best-kept tricks that are available on the command prompt.

Post Comment