Showing posts with label Command Prompt. Show all posts
Showing posts with label Command Prompt. Show all posts

Wednesday, 10 July 2013

How to add a shutdown title to Start Menu?

Shutting down the PC in Windows is not really a straightforward matter. You have to move your mouse over to the lower-left corner and open up the Start Menu before you can select the “Shut Down” option. Using the trick stated here, you can easily pin a “Shut Down” tile to the Start screen where you can select to shut down the PC immediately.

Know How...!!!
Here are the steps to create shortcut for shut down process:
1. Go to Desktop, right click on the mouse and select New--> Shortcut.



2. Now, it asks for the location to link with shortcut. Type "shortcut /p" and click on "next", followed by "Finish".


3. Now, right click on the shortcut and select "Pin to Start Menu" or "Pin to Task bar".

Simple trick, but saves a lot of time..!!Try it now

Note: Why did shutdown happen when "/p" is added to shut down? It is a command prompt command to shutdown the computer. Here is more info:
Syntax
      SHUTDOWN [logoff_option]  [/m \\Computer] [options]

logoff_options:
    /i         Display the GUI (must be the first option)
    /l         Log off. This cannot be used with /m or /d option
    /s         Shutdown
    /r         Shutdown and Restart
    /a         Abort a system shutdown.
               (only during the time-out period)
    /p         Turn off the local computer with no time-out or warning
               (only with /d)
    /h         Hibernate the local computer (only with /f )
    /e         Document the reason for an unexpected shutdown of a computer

Tip: Each time Windows is shut down or restarted manually, including via the shutdown command, the reason, type of shut down, and [when specified] comment are recorded in the System log in Event Viewer. Filter by the USER32 source to find the entries.

Thursday, 4 July 2013

How to create Matrix Falling Code in Command Prompt?

Everyone loves the visual effect of the falling binary code "rain" in The Matrix. You can create it yourself too:



Know How...!!!
Here's how:

1. Click on Start, select run and type cmd (command prompt).
2. Now, copy the code below:


@echo off
color 0a
:top
echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%
goto top 

3. Paste in the notepad and save it as: knowhow.bat
4. Now, right click on the bat file and select run as administrator.

And that's it...You can see the Matrix wall or the so called Matrix rain falling till you close the command prompt...

Have fun...!!!

Tuesday, 25 June 2013

How to shutdown Your Computer giving a funny reason?

Not just you..Your computer gets tired too...! What if your computer can say "I am tired. Please don't tap! tap!!tap!!! me idiot. I am getting irritated"? ROFL...Do you want to try this with your friends' PC or laptop?

Know How...!!!
Type shutdown -s  -t 500 -c "I am tired. I don't want to work anymore idiot." (with the quotes) in the Command Prompt and press Enter. The -c switch is used in the code to give the reason for shutting down and what is followed in quotes will be displayed in the dialog box as the reason. This can be used to display all sorts of funny messages. For example: "Can't you do anything right? I can work for myself.You cannot use your PC anymore." Your friend restarts the system, but it shuts down again and again and again... :)

Now how to stop the shut down?
Type "shutdown -a" and press Enter. This will stop the system from shutting down if the countdown to shut down has not reached 0.

Tease your friends now...!!! :)

Sunday, 23 June 2013

How to create Undeletable files & folders?

It happens to many of us frequently.. You have hundreds of files and documents which are very important for you in that folder, and one day you find that some one has deleted that folder either by mistake or to make you fall in trouble. If you want to overcome this problem, you need to create a folder which is undeletable and files too. Do we have such options? Yes, we do have. This trick for 92% of Netizens, you know what I mean... It's for Windows OS users :) 


Know How...!!!
-->Here are the steps how to create undeletable and unrenamable folder...
1. Open Command Prompt, by typing "cmd" on run command line.
2. Now, if you want E:/ as the destination, just type E: and press enter.
3. Now type the command md\aux\\ and press enter.

 And that's it...You get a folder named aux in E:/...
Try to delete and you get the error below:
Now Windows will create an undeletable, unrenamable folder in the drive you entered in step 2. Quite easy to create .Isn't it?

How did this happen? What's secret behind this?
Let me reveal: The basic concept behind this trick is the use of Keywords. Keywords are reserved words in any programming language that 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.

-->How to delete the undeletable folder?
Now, here is the process.
1. Open command prompt and go to the drive where the folder is available.
2. Now, type rd\aux\\ and then press enter. That's it.
Your undeletable folder is deleted... :)

Note: Folder cannot be deleted or renamed, but files in it can be deleted, leaving it empty by using the above trick.

-->How to, if you need to create undeletable and undetectable files too?
Check out this simple method to make it happen:

1. Go to command prompt.

2. Go to the drive or folder where you have folders or files which you want to make undetectable , undeletable , etc.
3. Now in command prompt type:
attrib
and add the following code to it. You can use these codes together or just with single.
+s : This variable makes the “Attribute” of a file into a system file
+h : This variable makes the “Attribute” of a file hidden
+a : This variable makes the “Attribute” of a file archived

For example, you want to make a file CSE.txt undeletable, then type attrib +s CSE.txt and press enter. This makes CSE.txt undeletable. If you want it hidden, add +h along with above attrib command and press enter.

That's it...!!! Your file becomes undeletable, hidden or archived as you like...

-->Again, what if you want to delete?
If you want to make it deletable and detectable again, just type the codes with "-" in them for all the "+" u have given.i.e attrib -s -h CSE.txt 
You can open the file without deleting their attributes by typing their location in the address bar. Like mine undeletable file location is E:\aux\CSE.txt. Just type it in address bar and CSE.txt will open up even if it is undetectable.

You are unbeatable now, with your files and folders secured...Keep smiling. 
Have a nice day :)

Saturday, 22 June 2013

How to watch ASCII StarWars movie in your command prompt?

Do you know that you can watch Star Wars movie on your System in the command Prompt..? 

Know How...!!!
Let me tell you beforehand that you need to have "telnet" enabled on your system.
To watch ASCII Star Wars movie in the command prompt, follow the steps below:
For Windows:
1. Go to Start and then select run
2. Type cmd to enter into command prompt.
3. Now, type "telnet towel.blinkenlights.nl" without double quotes and then press enter. (As said earlier, ensure telnet is enabled on your pc or laptop before you do this process) 
For other OS users:
Users of Mac OS X & Linux can directly execute the code "telnet towel.blinkenlights.nl" in the terminal window.

P.S: What if telnet is not enabled on your PC?
It's quite simple. 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.
  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.
Make popcorn ready before you start watching the  ASCII movie. By the way,know this too... It's called  "Star ASCIIMATION Wars" by the tech-gigs :)