Jump to content

Autorun.inf on a USB Flash Drive


phillyman2004

Recommended Posts


  • 3 years later...

I have Windows Vista and Windows XP Machines.

I have several Flash drives.

I have tried several times and failed.

Here is my Autorun INF file.

[autorun]

OPEN=Q:

ICON=\Icon\Flashdrive.ico

ACTION=USB Flashdrive

IT does not work.

I want to:

1. Display my drive icon in “my computer”. (Flashdrive.ico)

2 To have the drive open up. (displaying the flashdrive’s contents)

3. To open the Autoplay dialog box.

I am no programmer. Can anyone help me write this Autorun.inf file ?

mrgcav@gmail.com

Edited by MRGCAV
Link to comment
Share on other sites

Type this in your autorun.inf:

autorun.inf

[autorun]
open=%windir%\explorer.exe
icon=usb.ico

This works for me. It opens the folder and displays the icon I want.

I have the icon and autorun.inf file system, readonly, hidden attribs (so viruses will not hijack your autorun.inf file and it remain invisible.

type this in command prompt:

attrib +s +h +r autorun.inf
attrib +s +h +r usb.ico

Link to comment
Share on other sites

(so viruses will not hijack your autorun.inf file and it remain invisible.

This is pure nonsense I'm afraid. Even when the file is marked as a system file, read-only and hidden, it can still be tampered with by virusses.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...