autoload or autorun from USB

Hello all you super smart programmers.

I have a Disco Drive/flash usb drive.  This drive has the ability to be autoload or autorun when inserted but of course that is if you purchase it from them with this code in place.. (not sure what that means) but they market their stuff as autlo load presentaitons, pdf's and flash so I assumed these came with something to make that happen.   Jerks

I have read through the other questions here and nothing really helps me so I thought I would do a new post

anyway I downloaded a program that creates autoload programs for you, and it sure is slick.  so on the drive I have all the files I need and an autoload.ini, autoload.exe and such.  When I double click the autoload.exe the word document I have chosen as the application opens fine.  but when I take the drive ouyt and put it back in nothing happens.

can anyone help me?
billfryAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

naiea1231Commented:
In the root directory of the flash drive you have to have an autorun.inf file which is simply a text file containing something along these lines

[AutoRun]
Open=autoload.exe
Icon=autoload.exe

You can specify an alternate icon, or a different program, but if your executing autoload.exe this should work fine. So just paste that into notepad and save it as autorun.inf on your flash drive and it will autoplay automatically. Let me know how it goes

James
0
billfryAuthor Commented:
James:

I do have this on the root drive of the usb and nothing happens.  will paste my code up here tomorrow when I get intot he office.  Thanks for answering, maybe we can get this figured out..

D
0
naiea1231Commented:
Okay, i'll have a look at what you've got but a couple of things you can check. Make sure the file is called autorun.inf (INF) and doesn't have any hidden extensions. Then, you can test that windows is recognising the file by right clicking on your usb drive when in my computer and seeing if the AutoPlay option is in the context menu there. If it is, then it might be a matter of setting windows to autoplay from that particular drive. Keep me posted.

James
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

billfryAuthor Commented:
James:

okay here is what is at the root of the drive..  

autorun.exe
autorun.inf
the word document I am opening
autorunv.dll
mfod.dll
mfc42.dll

autorun.inf contains the following
[autorun]
OPEN=AutoRun.exe
ICON=AutoRun.exe


when I right click the drive autoplay is not an option.  the issue is going to be that I am sending a 100 of these to clients and they will need to be able to just plug and play..  

thanks

D
0
naiea1231Commented:
I've just done some reading and it seems like this is more of a hardware issue, as removable devices do not appeat to be able to use autorun

http://www.microsoft.com/whdc/device/storage/usbfaq.mspx
Q: What must I do to trigger Autorun on my USB storage device?
The Autorun capabilities are restricted to CD-ROM drives and fixed disk drives. If you need to make a USB storage device perform Autorun, the device must not be marked as a removable media device and the device must contain an Autorun.inf file and a startup application.

The removable media device setting is a flag contained within the SCSI Inquiry Data response to the SCSI Inquiry command. Bit 7 of byte 1 (indexed from 0) is the Removable Media Bit (RMB). A RMB set to zero indicates that the device is not a removable media device. A RMB of one indicates that the device is a removable media device. Drivers obtain this information by using the StorageDeviceProperty request.

After doing some testing, i've found that although the icon from the autorun.inf appears, no matter what i do, it won't process the "open=" part of the inf.
0
naiea1231Commented:
The only thing i can think of is somehow changing the removable media bit, although i have no idea if this is possible? Anyone?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
billfryAuthor Commented:
it turns out this isn't possible on this type of drive, you have to order them with this feature and provide the presentation.  
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.