Autorun for a USB stick

  • Thread starter Thread starter UnknownTBeast
  • Start date Start date
U

UnknownTBeast

I know this sounds odd, but is it possible to make my USB memroy stick to
automaticly run a file once I put it in without me having to click anything?
 
UnknownTBeast said:
I know this sounds odd, but is it possible to make my USB memroy stick to
automaticly run a file once I put it in without me having to click
anything?

Yes, with an autorun.inf file.

There should be webpages showing you have to make one on the web. All you
need to do is have an file called autrorun.inf on the memory stick, with the
following:

eg.
-----------------------------------------------
[autorun]
open=filename.txt
-----------------------------------------------

You can also give the flash drive a custom icon as well.

http://en.wikipedia.org/wiki/Autorun

ss.
 
Synapse Syndrome said:
I know this sounds odd, but is it possible to make my USB memroy stick to
automaticly run a file once I put it in without me having to click
anything?

Yes, with an autorun.inf file.

There should be webpages showing you have to make one on the web. All you
need to do is have an file called autrorun.inf on the memory stick, with
the following:

eg.
-----------------------------------------------
[autorun]
open=filename.txt
-----------------------------------------------

You can also give the flash drive a custom icon as well.

http://en.wikipedia.org/wiki/Autorun


I was just trying to check if it would work on files that way, as I have
only used it to run executables on CD-ROMs that I have complied, or to
change a drive's icon. For files, rather than executables, the command may
be different, but I cannot check right now as I only have a laptop with a
partitioned hard drive right now.

ss.
 
UnknownTBeast said:
I know this sounds odd, but is it possible to make my USB memroy stick to
automaticly run a file once I put it in without me having to click anything?

No, this has been more and more limited by each new Windows
version. Under Vista even on CDROM drives the user is asked.

For autorun something without any clicking, a 3rd party
software is required.

My USB drive letter manager is able to do this. It's a
small Win32 service. It's primary function is to assign
drive letters to USB drives but it can execute programs
on arrival of a drive too.
http://www.uwe-sieber.de/usbdlm_e.html

You need a simple configuration file, the USBDLM.INI
like this:

;letters U: to Z: as default for USB drives
[DriveLetters]
Letters=U-Z

;execute the Windows calcualtor on arrival of
;an USB drive with a volume label "MyCalcDrive"
[OnArrival10]
Label=MyCalcDrive
open=calc

With acitve UAC the program is started non elevated.
The next version of USBDLM will be able to start
programs elevated.


Greetings from Germany

Uwe
 
Back
Top