|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Autorun on USB Flash DriveI know this is probably not the proper newsgroup to ask this question,
but I do not know which one is. And most of you guys here know a lot about windows programming so I am taking a chance some one here may be able to answer this simple question. If I burn a CD/DVD and include a file in the root of the burned disk called Autorun.inf and the contents of it is: [autorun] open=C:\Program Files\myProgram.EXE then when the CD/DVD was inserted in the drive, the program at C:\Program Files\myProgram.EXE would automatically launch. I would like to do this same thing on a USB Flash drive. I have tried it but it does not launch the application. What is the magic incantation? Google is your friend, try searching: enable autorun usb flash drive
Most USB drives don't support it without software installed on the computer.. Show quoteHide quote "Joe Cool" <joec***@home.net> wrote in message news:6d2po21b0a5febvtlo9vi0ljb7rcm4rji7@4ax.com... >I know this is probably not the proper newsgroup to ask this question, > but I do not know which one is. And most of you guys here know a lot > about windows programming so I am taking a chance some one here may be > able to answer this simple question. > > If I burn a CD/DVD and include a file in the root of the burned disk > called Autorun.inf and the contents of it is: > > [autorun] > open=C:\Program Files\myProgram.EXE > > then when the CD/DVD was inserted in the drive, the program at > C:\Program Files\myProgram.EXE would automatically launch. > > I would like to do this same thing on a USB Flash drive. I have tried > it but it does not launch the application. > > What is the magic incantation? see this link http://www.microsoft.com/whdc/device/storage/usbfaq.mspx for
full details 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. For more information about the SCSI Inquiry command, see the T10 committee located at http://www.t10.org. For more information about the StorageDeviceProperty, see the STORAGE_DEVICE_DESCRIPTOR storage structure in the Windows DDK, located at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/storage_r/hh/storage_r/structs-general_3c393126-f5c8-47d8-bfb5-6127ce656e9a.xml.asp. For more information on Autorun.inf files see the "Creating an AutoRun-Enabled Application" article located at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_extending/autorun/autoplay_works.asp?frame=true. regards Michel Posseth [MCP] Show quoteHide quote "Joe Cool" <joec***@home.net> schreef in bericht [attached file: ext_ani.gif]news:6d2po21b0a5febvtlo9vi0ljb7rcm4rji7@4ax.com... >I know this is probably not the proper newsgroup to ask this question, > but I do not know which one is. And most of you guys here know a lot > about windows programming so I am taking a chance some one here may be > able to answer this simple question. > > If I burn a CD/DVD and include a file in the root of the burned disk > called Autorun.inf and the contents of it is: > > [autorun] > open=C:\Program Files\myProgram.EXE > > then when the CD/DVD was inserted in the drive, the program at > C:\Program Files\myProgram.EXE would automatically launch. > > I would like to do this same thing on a USB Flash drive. I have tried > it but it does not launch the application. > > What is the magic incantation?
Other interesting topics
How I can find out on which platform I am running (32/64 bits)?
Why not use DAO? your favorite VB 2005 book? overriding array size How to determine if e-mail was sent OK Add Active Directory Users to a Group on a Workstation Windows Service to copy files to a Mapped Drive change date getting 2005 grid to look like 2003 FolderBrowserDialog questions |
|||||||||||||||||||||||