09-25-2012 11:43 PM
Hi,
in my application i have multiple threads writing to multiple file streams. The drive i am writing to is the MASTER on the Primary IDE channel. i would like to get this drive letter for this hard drive during run time of the application and create the file. is ther any pointers for me to do this?
Thanks,
Suni
09-26-2012 01:24 PM
Suni,
Have you taken a look at the Utility Library > Directory Utilities > GetDrive() and SetDrive() methods?
I believe these are similar to what you are trying to accomplish.
09-27-2012 12:11 AM
Suni,
why do you want to write to " MASTER on the Primary IDE channel" ? On a modern PC with SATA Ports only there is no such thing any more. Did you really mean something like "drive, where Windows is installed" ?
09-27-2012 09:32 AM
HI,
My system is a PC-104 FORM FACTOR type. The mother board only have IDE channels. There are no SATA connections. I have a CF flash card (as removable storage) installed on the primary IDE as a master.In my application i want to write to this removable CF card then data can be processed by another machine.
Therefore i would like to make sure when i crete file it is on this drive.
Thanks,
Suni
09-27-2012 10:17 AM
Isn't it much simpler to store somewhere in a configuration file the drive letter to use?
09-28-2012 12:41 AM
Is that CF card also used for the Windows installation ? Then I would use WinAPI GetWindowsDirectory() function to get the path for the Windows Installation and extract the drive letter from that path..
If the the CF card isn't the Windows drive you might have a look at Volume GUIDs.Searching MSDN for "Volume GUIDs" shows examples how to use Volume GUIDs