By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,798 Members | 1,766 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,798 IT Pros & Developers. It's quick & easy.

USB mass storage device addressing using C

P: 1
How can read data from a USB mass storage device (which is detected by OS windows XP)with C or how can i find the address of the particular device.Is there any way to address individual memory locations of a hard drive.
Mar 17 '07 #1
Share this Question
Share on Google+
1 Reply


100+
P: 168
How can read data from a USB mass storage device (which is detected by OS windows XP)with C or how can i find the address of the particular device.Is there any way to address individual memory locations of a hard drive.
. If USB is detected by WinXP, then it will be mapped to a drive (E:
or F: or whatever). Then you will be able to read the data from a
file (from USB) as if you are reading from Hard disk or Floppy drive.

2. If you think the above method will not work in all the PCs as the
USB drive letter will change depends on the num of drives present in
the PC, then format your USB as bootable disk. Boot the system using
USB, read the file using C prog and have fun :)

3. The following link shows how to read a particular sector in a
floppy drive using int86 interrupt function. This might or might not
applicable to USB, becaue the way in which the data stored USB is
different from floppy.

http://gd.tuwien.ac.at/languages/c/programming-
bbrown/advcw3.htm#dosint

Have a good day!
Mar 18 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.