How To make An Autorun File For USB Drives





When you plug a  USB drive in, you might be interested in making a program, or other things happen as soon as you plug in. The way you accomplish this is through the Autorun.inf file. The autorun.inf file is located in the root of the usb drive and tells Windows what to do automatically.
This autorun can be used to make good, or bad USB’s depending on what you like.

This tutorial covers:-


Creating a USB Autorun.inf
Changing label\icon of thumbdrive
Making a new option appear in the autorun menu
Making programs automatically run when plugged in

So Read On...



Creating a USB Autorun.inf :






And that’s it for this tutorial!
 
You can also follow these instructions when making a CD. You just have to burn it on the cd.
To create an autorun file, open Notepad and save ‘autorun.inf’’ (with quotes) and save it to the root of the drive. All it needs to have is in the first line;


[autorun]

Done!

Changing label\icon of thumbdrive:

Follow the steps in Creating a USB Autorun.inf. Before you save it, type this in in this order!

[autorun]

icon=myicon.ico


label=MyLabel


And save. Make sure the icon file is in the root of your drive.

Making a new option appear in the autorun menu:

Right, so make your autorun file and type this into Notepad:


[autorun]
icon=default
label=[yourlabelhere]

action=programname.exe
Open Program



Save it and exit. Once again, the program has to be in the root. Now, when you plug it in, the option should appear in the menu.

Making programs automatically run when the USB is plugged in:

Follow the same instructions, blah blah blah;


[autorun]
Icon=default
label=YourLabelHere
open=programname.exe



[Read More...]


How to Change default USB Pen Drive Icon




Are you bored of usual USB flash drive icon? Well, you can easily give makeover to icon of USB drive and use any image as its icon. Whole procedure involves 3 lines of simple code and new icon image that you want to use instead of default USB flash drive icon.
change-usb-drive-icon

Change to new USB drive icon:-

1. Goto Start, Run. Then type Notepad to open Notepad application on the computer. Now type following lines in the notepad file.
change-usb-drive-code
2. Save the notepad file as autorun.inf (above AnyName is label showing at USB icon and icon.ico is the name of the icon file).

3. You need icon file in ICO format. You can download any icon in ICO format from Iconspedia.com website. Alternatively, you can use convert any PNG image to ICO format and use it as icon.

4. After you get the Icon file, rename it as icon.

5. Plug your USB drive, copy both icon and autorun.inf files to it.

6. Safely Unplug and then plug back USB drive to see new icon.


[Read More...]


Unable To Format Your Pendrive ?




What you do when you are not able to format your Pendrive or it shows "The disk is write protected" error? Try this simple trick to format your Pendrive.
1.Check out if the USB drive has a small swich for write protection. If its there try toggling the switch.

2. Windows can all write protect flash drives. Check out this registry path,
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies.

You may find a key here on the right side by the name '
WriteProtect'. If it's not there this would not be the cause of problem. If it's there, make sure that the value is 0.

or

Use this utility.


http://www.apacer.com/en/support/downloads/Repair_tool_V1.65.zip


It is very good. You may have to use it 2-3 times. Each time safely remove pendrive. Again start utility exe file.
[Read More...]


 

Recent Comments

logo

Award Winning Computer Users Blogs - BlogCatalog Blog Directory

About Me

About Me

Subscribe

Popular Posts

Return to top of page Copyright © 2011 | Platinum Theme Converted into Blogger Template by HackTutors