0

hello to you all.

I need to now how we can write a simple c code which will run when ever we plug in the usb drive in the port. Simply how to load our program at boot time.

Thanks

4
Contributors
10
Replies
11
Views
9 Years
Discussion Span
Last Post by letmec
0

>>a simple c code which will run when ever we plug in the usb drive
:icon_lol: :icon_lol: :icon_lol: :icon_lol: :icon_lol: :icon_lol: :icon_lol: :icon_lol: :icon_lol:

0

Tell me what will be the appraoch. I think i had to change the boot sector pogram.

0

when we plug in usb drive, the first thing that os does is that it checks bootsector. In boot sector which is 512 bytes long has 2 parts. one is boot paramenters(tells the organozation of the disk) and the second one is bootstrap program which actually runs. What if anyone can tell how write such bootsrap program that will load my hello world program in the memory and execute it.

0

autorun command
open=my.exe
does not work for Usb flash drives
why???

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.