USB Autorun

This is a discussion on USB Autorun within the Tech Board forums, part of the Community Boards category; I was wondering if it is possible to make programs autorun on a USB flash drive like a CD does. ...

  1. #1
    Registered User
    Join Date
    Jan 2003
    Posts
    361

    USB Autorun

    I was wondering if it is possible to make programs autorun on a USB flash drive like a CD does.

    I have searches the internet and all I found was some X-autorun program which didn't work for me, I think it only works for their products.

    I don't know all the specifics about this flash drive but it has 32mb, it is my friends so I can ask him if you all need the specifics.

  2. #2
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    what are you trying to autorun??

    If you are using XP, you should be able to tell Windows that whenever that device connects, that you want it to do a certain action.

    Failing that, you could look up the CD method and try that.

  3. #3
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    http://www.microsoft.com/whdc/hwdev/bus/usb/usbfaq.mspx

    Basically, you have to set it up like a CD and tell Windows that it is NOT a removable device somehow.


    "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. An 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/en...k306_00qa.asp.

    For more information on autorun.inf files see the "Creating an AutoRun-Enabled Application" article located at http://msdn.microsoft.com/library/en...lay_works.asp.

    "

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. question about usb
    By h3ro in forum Tech Board
    Replies: 6
    Last Post: 01-18-2009, 05:02 PM
  2. USB Card Autorun
    By Junior89 in forum Tech Board
    Replies: 1
    Last Post: 11-07-2004, 10:06 AM
  3. Usb 2.0
    By ober in forum Tech Board
    Replies: 6
    Last Post: 09-06-2003, 11:14 AM
  4. usb programming
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 07-24-2002, 09:06 PM
  5. Printers On USB
    By (TNT) in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 03-10-2002, 11:48 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21