Is your Windows boot drive letter: C?

For everything that's not in any way related to PureBasic. General chat etc...

Is your Windows boot drive letter: C?

Yes, it's C:
21
72%
No, it's another but I do have a C: drive
8
28%
No, it's another and I don't have a C: drive
0
No votes
 
Total votes: 29

PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Is your Windows boot drive letter: C?

Post by PB »

Is it safe to assume that the average Windows boot drive letter is C? Because
I've been using the GetWindowsDirectory API to see which drive Windows is
installed on, but this has the potential to be something other than C, which
could be a problem for what I want to do (a hardware hash).

Or to put it another way: Would every Windows setup have a C drive, just
like it always has an A floppy drive (even if not used)? So would it maybe be
considered to be out of the norm to NOT have a C drive?
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Re: Is your Windows boot drive letter: C?

Post by thefool »

PB wrote:just
like it always has an A floppy drive (even if not used)
euhm is that true?

edit:
Confirmed its NOT true. And no, windows doesnt always have a C drive either :)
Last edited by thefool on Sun Feb 26, 2006 11:31 pm, edited 1 time in total.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Is your Windows boot drive letter: C?

Post by PB »

I think so... I once read that A and B are always floppies, and C is the first
hard drive, which is usually (but not always) the boot drive. But I haven't
pulled out my floppy (oo-er) to see what happens in My Computer to A:,
maybe it does disappear? Can anyone without a floppy drive confirm?
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

Updated my post.
I have 2 laptops with no floppy, no a-drive.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

Thanks for confirming. Must've been a very old article I read. :lol:
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

hehe well, some of us arent using 95 anymore :P (i know you use xp :) )
freak
PureBasic Team
PureBasic Team
Posts: 5948
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Yes, with older windows versions it was like that. A and B were floppies if present,
and C was always the first harddrive.
Dunno about NT, but atleast since Win2k, the system internally does not work
with drive letters at all anymore. The driveletters are only a mapping for the
user so to speak, and it can be freely changed. (only the drive letter where
you install the system can not be changed after the installation but before that you can)

You can have a Windows system with only a drive Z and nothing else if you want nowadays.

Its quite uncommon to not have a C drive though, but possible.
quidquid Latine dictum sit altum videtur
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

Okay, due to the fact that relying on C alone is unreliable, I've approached
the hash with a failsafe technique: I parse all drive letters (A-Z) and if they
are of #DRIVE_FIXED type, then I will note the drive in the hash. That way,
it doesn't matter where Windows is installed, or if a C drive is present. :)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Post Reply