PC Review


Reply
Thread Tools Rate Thread

autorun on flash drive insert

 
 
shytemail@gmail.com
Guest
Posts: n/a
 
      30th Jan 2007
Anybody know how to have a .exe file autostart when a flash drive is
inserted? the exe file is located on the removable drive, of course.
Basically, the functionality that is built into winXP for CD's, but
i'm trying to get that to work for removable media.

 
Reply With Quote
 
 
 
 
JBrunelle
Guest
Posts: n/a
 
      30th Jan 2007
This really isn't an option unless you have special software on the
host machine. I personally have the list of options customized when I
insert one of my usb keys by writing an autorun.inf file. What i mean
is that when i insert a certain stick (with the autorun file on it)
the list that pops up which usually says open the folder... open in
wmp... is customized. They are not so hard to make. Also, if i insert
my drive, I can right click it, and launch certain programs from the
drive. Here is an example of my autorun.inf file:

[autorun]
ICON=AUTORUN.ICO (any icon in the root)
action=Launch (this is what is shows in the pop-up menu)
open=autorun.exe start.bat (this points to your batch file, to launch
any program you want)

I basically made a few batch files, and pointed to them in the autorun
file. If I can find my old usb drive, I can show you the more
sophisticated autorun file. Good Luck

On Jan 30, 12:09 am, shytem...@gmail.com wrote:
> Anybody know how to have a .exe file autostart when a flash drive is
> inserted? the exe file is located on the removable drive, of course.
> Basically, the functionality that is built into winXP for CD's, but
> i'm trying to get that to work for removable media.


 
Reply With Quote
 
JBrunelle
Guest
Posts: n/a
 
      30th Jan 2007
Just a correction, you don't need to write open=autorun.exe start.bat,
leave out the autorun.exe (that was an attempt to get something to
auto-launch using some weird program). open=start.bat will do just fine

 
Reply With Quote
 
Elmo
Guest
Posts: n/a
 
      30th Jan 2007
(E-Mail Removed) wrote:
> Anybody know how to have an .exe file autostart when a flash drive is
> inserted? The exe file is located on the removable drive, of course.
> Basically, the functionality that is built into winXP for CD's, but
> I'm trying to get that to work for removable media.


You need AUTORUN.INF in the root folder, IF it's going to work at all..
Look for more details here:

http://groups.google.com/group/micro...d0db3fd56758ae

--
Joe =o)
 
Reply With Quote
 
Bob I
Guest
Posts: n/a
 
      30th Jan 2007
http://labnol.blogspot.com/2006/02/e...en-drives.html

(E-Mail Removed) wrote:

> Anybody know how to have a .exe file autostart when a flash drive is
> inserted? the exe file is located on the removable drive, of course.
> Basically, the functionality that is built into winXP for CD's, but
> i'm trying to get that to work for removable media.
>


 
Reply With Quote
 
mike909
Guest
Posts: n/a
 
      30th Jan 2007
On Jan 30, 7:19 am, Bob I <bire...@yahoo.com> wrote:
> http://labnol.blogspot.com/2006/02/e...b-flash-pen-dr...
>
> shytem...@gmail.com wrote:
> > Anybody know how to have a .exe file autostart when a flash drive is
> > inserted? the exe file is located on the removable drive, of course.
> > Basically, the functionality that is built into winXP for CD's, but
> > i'm trying to get that to work for removable media.


Thanks for the suggestions. Jbrunnelle, I tried that wierd
'autorun.exe' program too...didn't work. I'l try the other suggestions
here.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AutoRun May Not Work After First Insert a "usb flash drive like a CD ROM" carter Windows XP Hardware 5 25th Apr 2008 07:09 AM
USB flash drive does not autorun when plugged in =?Utf-8?B?R29sZG1lbWJlcjIwMDc=?= Windows XP Drivers 1 3rd Oct 2007 01:51 AM
Autorun on USB Flash Drive Joe Cool Microsoft VB .NET 2 27th Dec 2006 02:58 PM
Autorun USB Flash Drive? Ben Blackmore Microsoft Windows 2000 0 4th Feb 2004 01:35 PM
Autorun USB Flash Drive? Ben Blackmore Microsoft Windows 2000 Hardware 0 4th Feb 2004 01:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:48 AM.