I have my My Documents folder on a different partition than my Windows installation. I installed XP to C:, but set My Documents to L:, which is my
/homepartition for my Linux OS on the same system (installed to U:). So when I was running the C++ Builder, and had to enter in files on the
/home/My Documents partition as parameters to the C++ Builder, I got sick of writing the full file path.
Because I thought I had to. Until today, I couldn't figure out how to
cdto another partition on my hard drive. I didn't realize that Windows was treating the partition as a virtual drive, even though it's obviously mounted as my L:. For some reason, it didn't occur to me to change drives like you switch to a directory on a floppy disk.
But that's all I had to do. Now, I don't need to write the full file path, because I can change drives and then
cdto the proper directory. I'm basically an idiot for not realizing before that:
C:\> cd L:\wouldn't work, and I need to type:
C:\> L:to change drives, and then:
L:\> cd programming\c++\helloworldto get to the directory containing my "Hello, World" source.
Moral of the Story: For those of you out there who, like me, couldn't figure out the obvious:
- Windows treats mounted partitions as virtual disk drives, and not mounted directories like Linux and UNIX do.
- You consequently need to change drives in a command prompt before you can change directories.