hey, is there a way to tell if my program is being removed from removeable media?
also - is there a way to find if removeable media is connected to the pc my program is being run from?
thanks :]
hey, is there a way to tell if my program is being removed from removeable media?
also - is there a way to find if removeable media is connected to the pc my program is being run from?
thanks :]
Registered Linux User #380033. Be counted: http://counter.li.org
> is there a way to tell if my program is being removed from removeable media?
Generally, no.
> is there a way to find if removeable media is connected to the pc my program is being run from?
Depends on your OS.
:: Depends on your OS.
Windows XP
Registered Linux User #380033. Be counted: http://counter.li.org
> is there a way to find if removeable media is connected to the pc my program is being run from?
Should be obvious -- if the program is being run from a floppy in a: drive then the disk has to be there, otherwise you couldn't run the program. How to tell if someone removes the disk after starting the program? depends on the program. If it attempts to read something from the disk then it won't work.
You can get the type of a drive in Windows with the GetDriveType() function. Passing NULL to it gives the type of the drive of the current directory.
long time; /* know C? */
Unprecedented performance: Nothing ever ran this slow before.
Any sufficiently advanced bug is indistinguishable from a feature.
Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31.
The best way to accelerate an IBM is at 9.8 m/s/s.
recursion (re - cur' - zhun) n. 1. (see recursion)