Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

autoload or autorun from USB

Posted on 2004-11-05
7
Medium Priority
?
1,121 Views
Last Modified: 2012-05-05
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?
0
Comment
Question by:billfry
  • 4
  • 3
7 Comments
 
LVL 5

Expert Comment

by:naiea1231
ID: 12515934
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
 

Author Comment

by:billfry
ID: 12516706
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
 
LVL 5

Expert Comment

by:naiea1231
ID: 12517093
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:billfry
ID: 12520010
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
 
LVL 5

Expert Comment

by:naiea1231
ID: 12529988
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
 
LVL 5

Accepted Solution

by:
naiea1231 earned 1000 total points
ID: 12529999
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
 

Author Comment

by:billfry
ID: 12670046
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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
Simple Linear Regression
Loops Section Overview

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question