Hi, I'm writing a file browser, but I'm not sure how I could go about
detecting the drives available on windows and linux systems (preferably
using the standard modules if possible). I guess I could just try to
list root on each letter of the alphabet for windows and see if it
works, but that seems crude; besides, I want to know what kind of drive
each drive/partition is (i.e. is it local and is it a harddrive or
optical drive).
I'm not aware of any cross-platform way of doing this.
On Windows you have a few options, but I'd go down
the WMI route; it just makes life easier for doing this
kind of thing. You might want to start by adapting this
example:
Re: Possible Sleeping Virus ... Remember that System Restore only tracks SYSTEM files - not yours. ... You should periodically defragment your hard drives as well as check them ... using Windows XP "prettifications". ... You should at least turn on the built in firewall.... (microsoft.public.windowsxp.newusers)
Re: Can Only Boot with Boot CD in Drive ... install are pointing to the wrong drive, because when you installed the 2nd Windows, THAT became the C: ... When I insert the Recovery disk to re-install windows, it always refers to my drives backwards ... ... Place the drive on which you want to install Windows at the Master position on the Primary IDE controller. ... When you say "Place the drive on which you want to install Windows at the Master position on the Primary IDE controller", I'm not really sure I know how to do that. ... (microsoft.public.windowsxp.general)
Re: another Windows nightmare ... after i hook this hdd up to the other laptop, will i be able to see contents ... of the windows directory.... is that just because of the boot issue? ... You will need a computer with two cd drives, one of which is a cd/dvd-rw ... (microsoft.public.windowsxp.general)
Re: Can Only Boot with Boot CD in Drive ... The boot files remained there when you reinstalled to the wrong drive. ... are pointing to the wrong drive, because when you installed the 2nd Windows, THAT became the C: ... When I insert the Recovery disk to re-install windows, it always refers to my drives backwards ... ... Keep the other driveOUT of the machine until you have Windows installed properly and up and running, these other drives can be brought online after you install Windows. ... (microsoft.public.windowsxp.general)
Re: Can Only Boot with Boot CD in Drive ... are pointing to the wrong drive, because when you installed the 2nd Windows, THAT became the C: ... When I insert the Recovery disk to re-install windows, it always refers to my drives backwards ... ... Keep the other driveOUT of the machine until you have Windows installed properly and up and running, these other drives can be brought online after you install Windows. ... When you say "Place the drive on which you want to install Windows at the Master position on the Primary IDE controller", I'm not really sure I know how to do that. ... (microsoft.public.windowsxp.general)