如何令USB memory stick/drive 內的file 自動運行? 10點

2006-12-08 6:21 pm
cd-rom 有 autoRun.ini,當入了cd後,系統會自動運行cd內的程式。
那麼 usb memory stick / drive 有沒有類似的 autoRun 功能,當入了 usb memory stick / drive 後會自動運行內裏指定的程式呢?

回答 (1)

2006-12-15 8:59 am
✔ 最佳答案
我幫你搵到多D information...
不過就比較複雜...因為係比developer 睇...

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.

For more information about the SCSI Inquiry command, see the T10 committee located at http://www.t10.org. This link leaves the Microsoft.com site

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.

另外.. 搵到一d唔太相關既...
就係可以boot up from usb...
in case 你有興趣...
download link:
ftp://ftp.compaq.com/pub/softpaq/sp27001-27500/SP27213.exe
雖然Windows XP底下具有格式化工具,但Windows XP的格式化工具僅能將軟碟格式化成有開機功能,而無法將大姆碟格式化成具有開機功能下載一個「SP27213.exe」的格式化工具,安裝完成後執行,程式會自動偵測到大姆碟,並且你要準備一張Windows 98的開機片作為開機資料讀取來源,如此就可將大姆碟格式化成具有開機功能。

http://www.computerdiy.com.tw/modules/news/print.php?storyid=1922


收錄日期: 2021-04-12 17:56:47
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20061208000051KK00762

檢視 Wayback Machine 備份