Just create an autorun.inf and it'll launch whatever program you specify.
Nope not from a flash disk or USB device
see this link
http://www.microsoft.com/whdc/devic...age/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/d...e656e9a.xml.asp.
For more information on Autorun.inf files see the "Creating an
AutoRun-Enabled Application" article located at
http://msdn.microsoft.com/library/d....asp?frame=true.
regards
Michel Posseth [MCP]
"Spam Catcher" <sp**********@rogers.comschreef in bericht
news:Xn**********************************@127.0.0. 1...
tmWin <tm****@gmail.comwrote in news:1183057112.766023.37590
@g37g2000prf.googlegroups.com:
>Hi all
I wanna run my application directly from a Flash Disk.
I want it AUTORUN once the device is attached.
I have seen some virus script-programs which create their own autoruns
on a specific Flash Disk device.
It would be very thankful If anyone could tell me about it.
Just create an autorun.inf and it'll launch whatever program you specify.