Jump to content

Autorun.inf on a USB Flash Drive


Recommended Posts

Posted

I want to be able to stick my USB drive into a computer and have a program run automatically , i have tried messing with the Autorun.inf file but havent had much luck , I work on around 20 - 30 machines a day and would like to have this feature

any ideas

Rob


  • 3 years later...
Posted (edited)

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
Posted

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

Posted
(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.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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