COMMAND PROMT TRICKS

COMMAND PROMT TRICKS

Command Prompt is one of the most powerful tools in Windows; but sadly, it is also the most ignored one. Things were not always like this; but with the advent of GUI based operating systems, people started feeling that computing through command based tools was boring. This ultimately lead thecommand prompt into obscurity.

However, the command prompt is not useless. In fact, it can be pretty useful. This article provides some excellent tricks, secrets and hacks that will make you realize that the Windows Command Prompt is not only useful but also a tool that you should definitely give more respect to.

____________________________________________________________________

Watch ASCII version of the Star Wars Episode IV movie

Every one of us has watched Star Wars on television, computer or in a theater. It is the same movie with aliens fighting each other for galaxies and such stuff. There is nothing new in it. But wait, have you watched an ASCII (American Standard Code for Information Interchange) version of Star Wars and that too in Windows using telnet? A network protocol known only to computer wizards. Well if you have not, then you must do it now!

There is a complete copy of Star Wars done entirely in ASCII characters that you can watch in the Windows operating system (or any OS that supports telnet). The only thing required to watch it is an internet connection; speed does not matter.

To watch it on Windows XP, Mac OS X and Linux

  1. Go to Start, Run. (Only for Windows users)
  2. Now type “telnet towel.blinkenlights.nl” without the quotes and press Enter. Users of Mac OS X and Linux can directly execute this code in the terminal window.

On Windows 8, Windows 7 and Windows Vista

Telnet is turned off by default in the latest versions of Windows. So, in order to watch star wars, you must first enable telnet by going to Control Panel › Programs › Turn Windows Feature On or Off and ticking both the telnet check boxes. After doing that, follow the steps given below:-

  1. Go to Start, Search in Windows Vista and Windows 7. On Windows 8, open the main Start page.
  2. Type telnet and press Enter.
    A Picture showing Star Wars in command prompt
  3. In the following command prompt window, type “o” without quotes and press Enter.
  4. Now type “towel.blinkenlights.nl” without the quotes and press Enter.

Note – If you do not need telnet anymore, you can turn it off.

A command prompt window like the one in the image will open with the movie being played in it. See the movie yourself. Did you enjoy watching this new version of Star Wars? Well, I did and know it for sure that you would have too.

____________________________________________________________________

Create Matrix falling code effect

Have you watched “The Matrix”? Of course, you have. Then, you already know what I am talking about. In case you still don’t  know what I mean, take a look at this image! You can create the same effect in command prompt by a simple code.

Copy and paste the code given below in Notepad and save the file as “Matrix.bat” or *.bat.

@echo off
color 02
:tricks
echo %random%%random%%random%%random%%random%%random%%random%%random%
goto tricks

Upon running the bat file, you will see the “Matrix falling code” effect.

command prompt tricks

____________________________________________________________________

Make Folders that you cannot delete

Have you ever wondered how you can make a folder which neither can be deleted nor be renamed. Well, if you

have, then you have come to the right place. With this trick, you will be able to create folders in Windows which cannot be renamed or deleted.
Basic Concept

The basic concept behind this trick is the use of Keywords. Keywords are reserved words in any programming language tha

t cannot be used as names of variables. Windows also uses certain keywords in its programming. Some of them are con, aux, lpt1, lpt2, lpt3, lpt4, lpt5, lpt6, lpt7, lpt8 and lpt9.
A Test
To test this concept, make a new folder in Windows and try to give it a name same as any keyword suggested above.

Result
Windows will not rename your folder to any of the keyword given above.

Trick
So the question arises, how can we make a folder with a keyword as its name? The solution to this problem is included in Windows itself. As we know that Windows has evolved from D.O.S.(Disk Operating System), its commands can be used in Windows. You can use D.O.S. Programming in Windows to create a folder with a keyword as its name using the steps given below:-

  1. Click on Start.Make Undeletable and unrenamable folders
  2. Click on Run. Type in “cmd” without quotes.
  3. In the  Command Prompt Window that opens, type the name of the drive you wish to create your folder in the format <drive-name>: and press Enter. e.g. If you wish to create the undeletable folder in D drive, type “D:” without the quotes. Note that the folder cannot be created in the root of C:/ drive (if C: is your system drive).
  4. Type this command- “md con\” or “md lpt1\” without the quotes and press Enter. You can choose any of the keywords given above as the name of your folder.

Now Windows will create an undeletable, unrenamable folder in the drive you entered in Step 3. However the folder can be renamed to another keyword using Windows Explorer.

Deleting the Folder 

Although it is not possible to manually delete the folder, you can delete the folder by typing “rd con\” or “rd lpt1\” in Step 4 instead of “md con\” or “md lpt1\”.

Windows Compatibility

This works on Windows XP, Windows Vista, Windows 7 and Windows 8.

Try it yourself to create one such folder which can neither be deleted nor be renamed.

____________________________________________________________________

 Shutdown your computer giving a funny reason

What if your computer shuts down saying that it is tired and doesn’t want to work anymore? It would be fun, wouldn’t it? You can do so by reading the instructions here.

____________________________________________________________________

 Know your IP address, DNS Server’s address and a lot more about your Internet Connection

Command Prompt can even let you know your IP address. Just type ipconfig/ all in the command prompt and press Enter. Along with your IP address and DNS servers, command prompt will also return a ton of information like your host name, primary DNS suffix, node type, whether IP Routing ,Wins Proxy, and DHCP are enabled, your network adapter’s description, your physical (MAC) address etc .

____________________________________________________________________

Know if your neighbours are 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 http://192.168.1.1 or http://192.168.0.1 depending on your router.
  2. Find the tab that mentions “Attached Devices” or something similar.
    command prompt codes
  3. Find the computer name, IP address and MAC Address (sometimes called Physical Address or Hardware Address) of your c omputer using the previous trick.
  4. Compare it with those displayed by your router in Step 2.
  5. If you notice some strange devices, then your neighbour has been sneaking in on your internet connection and it is best to set a password.

____________________________________________________________________

  Know if someone is hacking your computer/ Trace a Hacker

Command Prompt hacks

Want to know if someone is hacking your computer? 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”).

____________________________________________________________________

Note – These tricks work on Windows 8, Windows 7, Windows Vista, Windows XP and all previous versions of Windows.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s