Attach Your Own Photo And Name With USB Pen Drives, CD/DVD Drives Or Hard Disk Drives

Here i will show you how can you use your own photo and name instead of the default icon and name of any drive respectively.

For this you have an image of your own or any other that you want to use instead of icon having extension .ico or .bmp. if not then use Paint in windows or convert with any software.

Suppose your image is your-image.bmp.

Now open the Notepad and write the following:

[autorun]

icon=your-image.bmp

label=your-name

And save the file as name as autorun.inf.

Now copy and paste (or write in the case of CD/DVD drive) these two files in the Drive (USB,  Hard Disk) in which you want want to attach your image and name and remount the Volume or drive.That is in the case of USB Drive or CD/DVD Drive reinsert your USB device or CD/DVD.In case of Hard Disk Drive restart your computer.Done.

Example:

Currently my Pen Drive name is puru(H:).Now i copy and paste the AUTORUN.INF and Puru.bmp in my USB Pen drive.Shown in figure.

usbicon

I also copy and paste the same file in my Hard disk drive (D:). I have to restart my computer because drive (D:) need to remount.After the restart shown in figure.

usb-icon

Now if you want to hide the autorun.inf and your-image.bmp.So that it can’t be seen by others.Then do the following:

  1. Open command prompt (cmd.exe).
  2. Type the Drive Letter in side which the autorun.inf is present. (eg.  H: ) then press Enter.
  3. Type  ATTRIB AUTORUN.INF +S +H  and press Enter.
  4. Type  ATTRIB YOUR-IMAGE.BMP +S +H  and press Enter.
  5. Type  EXIT  and press Enter.

Example:

In the above Example  it is like this,

usb-hide

In the case of CD/DVD write these files after the system(S) and Hidden(H)  attributes are added.

How To Creat Autorun.inf For USB Pendrive Or CD/DVD Drive

An autorun.inf file is basically a text file that can be used by the AutoRun and AutoPlay components of Microsoft Windows Operating systems. It’s can be associated with any of the drives (USB drive, CD/DVD drive or Hard Disk drive volume) For the file to be in action, it must be located in the root directory of a volume. AUTORUN

The Autorun.inf file defines the following:

The application or process that will automatically run when a CD/DVD, USB disk or Volume is mounted.

 

The icon that will represent your CD/DVD, USB disk or any Hard disk Volume when the drive is viewed with My Computer or Explorer.

 

Menu commands displayed when the user right-clicks the CD/DVD, USB disk or Volume icon from My Computer or Explorer.

A simple Autorun.inf file have the following format :

[autorun] 
open=autorun.exe 
icon=autorun.ico

Suppose you have a setup.exe file in your USB Pen drive and you want to run this application automatically  when you insert your Pen drive in any computer.For this you have to create an autorun.inf file in root directory of your pendrive.

  1. Open Notepad.
  2. Write,

[autorun] 
open=setup.exe

       3. Save the file as autorun.inf in the root directory of your Pendrive in which the  setup.exe file is present.

        4. Now remove your Pendrive and again insert in to computer you will see the application setup.exe Executed automatically.  

Note:

By default, the system looks for the file in the root directory of the inserted disk. If you want to access a file located in a specific folder or subdirectory, specify a path relative to the root.

 

As Windows has a case-insensitive view of filenames, the autorun.inf file can be stored as AutoRun.Inf or autoRun.inF or any other case combination.

If you want to assign an icon to your Pen drive and also a name for your pen drive then just write two line more after the line open=setup.exe.

icon=youricon.icon

label=yourlabel

Where youricon.icon is the name of your icon file. Valid file types containing icons include .ICO, .BMP and also .DLL and .EXE can contain the icons. If the file includes more than one icon, by default, the second icon in the files icon resource will be displayed. You can write any name instead of yourlabel for your pen drive.

For CD/DVD drive you have to write this autorun.inf file in your CD/DVD.

 

Recent Posts

Popular Threads

Subscribe

Receive feed updates via Email: Enter Your email:-


Receive feed updates via your favourite feed Reader:

 Subscribe in a reader

Digitalability Copyright ©2010