Advertisement

04.14.2004 at 08:56AM PDT, ID: 20953875
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Enabling Autorun on USB flash Drive

Tags: autorun, usb, drive, flash
    How do I automatically execute a program when a usb pen drive is  plugged into the PC.  I cannot install any software on the machine before plugging in the usb drive.  
Start your free trial to view this solution
Question Stats
Zone: Storage
Question Asked By: d_hari
Solution Provided By: Callandor
Participating Experts: 15
Solution Grade: B
Views: 772
Translate:
Loading Advertisement...
04.14.2004 at 10:43AM PDT, ID: 10825838

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.14.2004 at 02:05PM PDT, ID: 10827806

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.14.2004 at 02:50PM PDT, ID: 10828176

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.14.2004 at 04:03PM PDT, ID: 10828667

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.10.2004 at 11:10AM PDT, ID: 11033592

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.14.2004 at 06:07AM PDT, ID: 11067886

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
07.28.2004 at 05:50AM PDT, ID: 11655767

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
07.28.2004 at 09:34AM PDT, ID: 11658475

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
07.28.2004 at 03:46PM PDT, ID: 11662210

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
08.03.2004 at 07:21AM PDT, ID: 11704769

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
08.03.2004 at 07:14PM PDT, ID: 11711860

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
08.03.2004 at 07:38PM PDT, ID: 11711935

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
08.03.2004 at 10:55PM PDT, ID: 11712581

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
08.04.2004 at 05:40AM PDT, ID: 11714701

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
08.12.2004 at 07:40PM PDT, ID: 11790153

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.12.2005 at 01:45PM PST, ID: 13029036

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.08.2005 at 01:29AM PDT, ID: 13734112

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.18.2005 at 04:07AM PDT, ID: 14025895

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.18.2005 at 09:20AM PDT, ID: 14028582

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.19.2005 at 06:08AM PDT, ID: 14035855

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
07.10.2005 at 09:05AM PDT, ID: 14407149

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.15.2005 at 02:04PM PDT, ID: 14893445

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.02.2006 at 08:52PM PDT, ID: 16592995

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Handhelds / PDAs
  • Displays / Monitors
  • Components
  • Networking Hardware
  • Peripherals
  • Laptops/Notebooks
  • Storage
  • Servers
  • Desktops
  • New Users
  • Misc
  • Apple
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMWare
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMWare
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Community Advisor
  • Lounge
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • Community Advisor
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
04.14.2004 at 10:43AM PDT, ID: 10825838

Rank: Guru

Are you asking if you can automatically run a program when you insert a USB pen drive, like when you insert a cd?  I don't think pen drives are set up to behave like regular bootable devices, and I have never seen or read about anyone being able to accomplish this.  You can boot from a USB external drive, but not a pen drive.

05/02/2006 update: this is possible and articles have been posted describing how to do it.  See http:#16592995
Accepted Solution
 
04.14.2004 at 02:05PM PDT, ID: 10827806
put a file "autorun.inf" in your pen drive and type in the file path of the executable you want. I haven't tested it that works or not, but it won't hurt to give it a shot.

gl!
 
04.14.2004 at 02:50PM PDT, ID: 10828176
your best bet is to copy the autorun.inf file from a CD-Rom and put it in the root folder on the pen drive. you will need to modify the INI file to point to the program on the pen drive. I have used this method to assign custom icons to a specific hard drive partition.

Most Windows 2000/XP computers should be able to access the pen drive as soon as it is plugged in, no drivers will be required
 
04.14.2004 at 04:03PM PDT, ID: 10828667
In order for autorun.inf to work, the drive in question must support auto-insert notification. In other words, it needs to tell Windows explicitly "I have newly inserted media". To the best of my knowledge, flash-memory drives such as that USB thumbdrive do not support such a thing.
Assisted Solution
 
05.10.2004 at 11:10AM PDT, ID: 11033592
I tried the Auto run with a SansDisk Minicruzer and it did not work. So I wasn't able to get "plug and run" functionality. I wrote a little routine in VC++ that detects when you plug a USB flash in, then finds, parses and executes the autorun.inf file. but this means you need such a program already installed on your PC.
 
05.14.2004 at 06:07AM PDT, ID: 11067886
And may we have a look at this code sample?
 
07.28.2004 at 05:50AM PDT, ID: 11655767
yes, I would be interested in see this code, can you post it, or email it to <Removed by Community Support>

Thanks.
 
07.28.2004 at 09:34AM PDT, ID: 11658475
Some study of the info at MS' site indicates that there's are a couple of flags buried deep inside of the OS that need to be changed so that when the driver loads up, it says it's a certain kind of device.  The USB drivers are normal HDD drivers, and normal HDDs aren't like this.

I'd like to know what some thumb drive vendors have done with their device IDs to fool the OS into thinking they're like that.  They probably say they're rewritable CDs or something like that, rather than HDDs.

Anyway, I'd like to get a copy of this code and the exe also.  (digloo at yahoo dot com)

Thanks
-David
 
07.28.2004 at 03:46PM PDT, ID: 11662210
i found a company who makes USB drives, and has a small utilitiy to make the USB drive run with autorun:

http://www.universalsmartdrive.net/standard/downloads.htm

wish i could see the code, or i wonder if the program works with any other usb drive...

 
08.03.2004 at 07:21AM PDT, ID: 11704769
The responses from Callandor and ElForesto are not accepted answers.  I do no know who accepted them, not me.  The accepted answer to this question is CODECRAIG.

Comment from codecraig
Date: 07/28/2004 06:46PM EDT
 Comment  


i found a company who makes USB drives, and has a small utilitiy to make the USB drive run with autorun:

http://www.universalsmartdrive.net/standard/downloads.htm

wish i could see the code, or i wonder if the program works with any other usb drive...
 
08.03.2004 at 07:14PM PDT, ID: 11711860

Rank: Guru

gmcfry,

Since you didn't ask this question, it's not surprising that you didn't accept the answers.  Why do you think you can accept an answer for someone else?  Isn't it up to them?  Something may have worked for you, but that doesn't mean it's a solution for everyone.
 
08.03.2004 at 07:38PM PDT, ID: 11711935
..has anyone found a solution for this??  anyone have any "autorun" code or anything??

thanks.
craig
 
08.03.2004 at 10:55PM PDT, ID: 11712581
Callendor said: "Since you didn't ask this question, it's not surprising that you didn't accept the answers.  Why do you think you can accept an answer for someone else?  Isn't it up to them?  Something may have worked for you, but that doesn't mean it's a solution for everyone."  I think you missed the point.

While I'm not totally familiar with the way this forum works or who gets to denote comments as "Accepted" or whatever, I would guess that a message that says it is the "Accepted Answer" is intended to convey some kind of authority, as if it's a "correct" answer.  In this case, the (previous) "Accepted Answer" was absolutely NOT correct.  It seems to have changed to one that is a bit closer to the truth, but it's still not correct.  If you want the "truth", head on over to the Microsoft Knowledge Base and find out what it has to say.

In a nutshell, USB devices are plug-n-play devices, which means that they announce to the OS what sort of device they are when they're plugged in and what features they support.  USB Storage devices tend to announce that they're ESDI drives.  I don't know why this is, but they could just as easily say they're Zip drives, CDs, or some other kind of REAL removeable storage.  The OS has a palette of settings that it loads up based on the settings for the various devices, and ESDI devices are basically NOT considered "removeable" by the OS.  (They ARE "bootable", however, which is a totally un-related subject.)  

According to the MSKB, you can run a program that flips some bits in the device driver telling the OS that the device IS removeable, and that it should enable auto-seeking for an autorun.* file upon insertion of a new media.  Short of that, the only other way that seems you can get an autorun.* file to execute when you insert a USB storage device is if that storage device tells the OS that it's something other than an ESDI drive.  That's something that is in exclusive control of the manufacturer of the device; it's not a user-settable option.

That said, I visited the site referred above (universalsmartdrive.com) and downloaded the x-autorun.exe file.  When I tried to install it, I got an error saying it's not a valid executable -- it's apparently corrupted.  Does anybody have a copy that works?

-David
 
08.04.2004 at 05:40AM PDT, ID: 11714701

Rank: Guru

If anyone disagrees with the accepted solution (which the asker determines), they can post in Community Support and protest.  The requirement is that they have to show that they had the correct solution.  As far as I can see, no one got this to work, but I'm not against someone finding a solution that does work.  Everyone benefits if that happens, and our knowledge base is increased.
 
08.12.2004 at 07:40PM PDT, ID: 11790153
Here's a whole other approach that some vendor claims works:  http://www.hsc-us.com/consumer/usb_flashdrive/UDRW.html
 
01.12.2005 at 01:45PM PST, ID: 13029036
I'd like to get a copy of this code and the exe also...


<Email address removed by Community Support>
 
04.08.2005 at 01:29AM PDT, ID: 13734112
The company that makes the drive indicated by iatricjb has the autorun feature available for download here - http://www.udrw.com/download/udrun.EXE
When you run the program it creates a folder in the same directory it was run from, the readme file has installation instructions but the program will only install under Win98 & ME.

Has anyone else found an answer to this yet? I would prefer not to have to find a specific drive to accomplish this task.
 
05.18.2005 at 04:07AM PDT, ID: 14025895
Sorry to resurrect an oldish thread, but, er, me too!!  Has anyone got a solution or is it just not the way these things are meant to work?  I could see there being security implications that later MS OS's may not like.

Dave
 
05.18.2005 at 09:20AM PDT, ID: 14028582
The question is, do you want to have to install a driver first in order to enable auto-run?  Lexar makes a USB drive called "The Traveller" or something like that that comes with software that lets you enable auto-run (they call it "auto-pop" for some goofy reason), but ... you have to install it on the machine FIRST.  The UDRW drive is designed to "announce" itself as TWO separate and distinct devices: one is a regular USB drive, which in fact is defined as a common ESDI removeable device that all USB drives use; the other is a CD-RW drive.  It's the second one that enables auto-run WITHOUThaving to pre-install anything on a machine.  Microsoft might some day add auto-run to ESDI device insertions as a feature to Longhorn or a later OS, but it's a long way off and not something that's likely to get a lot of attention in the press.
 
05.19.2005 at 06:08AM PDT, ID: 14035855
The answer to your question is No, the idea is to send out a promotional movie on a USB thumbdrive.  When recipient inserts USB drive, movie auto plays.

I don't think it can be done, but we have found a company who claim they can do it. We have to order a load of drives though, and they will preinstall for us.

I tried the MS application and it created autorun.inf and said it had copied other files onto the device.  I noted an exe and it was ref'd in the autorun.inf so I copied my own exe onto it and edited autorun.inf.  Now, on XP I am prompted to browse the files or run the application -- selecting the latter runs my EXE.  So its not really autorun -- user is asked what they want to do.  I could not get it to do anything on win 2000 - keeps telling me the disk is not formatted would i like to format it?  I tried formatting, but that failed also.  It is formatted fine on the XP box.  God knows what would happen if you stuck it in a Mac.
 
07.10.2005 at 09:05AM PDT, ID: 14407149
I don't have and answer but I do have some very interesting information. I created a autorun.inf to backup file on the c: drive to the thumb drive. I made to copies on on a Lexar 512 Jump Drive and one on a Apacer 64 Flash dirve. The Lexar drive works great. You plug it in the autorun kicks off and the files are backed up. However the 64 Flash Apacer doesn't work.

The only thing I see different is the Lexar doesn't show up as removable. They are both formated FAT32 and both partians are marked active.

Maybe this will let people know that autorun can be kicked off from a thumb drive, I just don't know how I did it.

Tommy
 
09.15.2005 at 02:04PM PDT, ID: 14893445
You can do it with a simple autorun file. Open notepad copy the below statement, save the file in your root USB directory with the filename "autorun.inf" and make sure you change the setup.exe to your program path and name that you want to run.

[Autorun]
open=setup.exe

or

[autorun]
shellexecute=setup.exe

Visit this address for all the autorun commands, its fairly simple and there is much more you can do.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_extending/autorun/autoplay_cmds.asp

Or
http://www.phdcc.com/shellrun/autorun.htm
for many many more options

As for booting, this should help someone out
http://www.microsoft.com/whdc/device/storage/usb-boot.mspx
About half-way down the page is the real information
 
05.02.2006 at 08:52PM PDT, ID: 16592995

Rank: Guru

Some newer information has been published that describes how to make a bootable USB key: http://www.tomshardware.com/2005/09/09/windows_in_your_pocket/index.html
 
 
20080236-EE-VQP-29