Hello!
I am programming in C++ for three years now, but I don't know Windows programming syntax.
It is two day's now how I am trying to find most adjustable C++ code. I was even trying to wrote it myself by studying some codes that might worked some other people. I am using Bloodshed Dev C++ program and compiler and I don't know whether that is important.
So I now that you can help me. So.. I need program that when I run it will just eject USB device that I just pluged in my computer. I don't need it for CD/DVD devices, I need it only for USB Removable Devices. And please I need it in C or C++ language. And is it possible to input name or letter of device and then eject it? Is it going to differend code if program will be for Windows XP and Windows Vista / 7?
Thank you.
for USB devices you may add a autorun inf file in root folder, and drop a line that says
[AutoRun] ;section
open=app ;yourprogram
eof
Then it shall start app
=====================================================================
Use it wisely and watch MTV
Last edited by john wiley; February 6th, 2012 at 04:17 AM.
for USB devices you may add a autorun inf file in root folder, and drop a line that says
[AutoRun] ;section
open=app ;yourprogram
eof Then it shall start app
Well....
But OP asked about
Originally Posted by thanatos10011
I need program that when I run it will just eject USB device that I just pluged in my computer. I don't need it for CD/DVD devices,
Don't you understand the difference between "start app" and "eject USB device"?
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it.
- Brian W. Kernighan
Bookmarks