Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determining users HD letter

Status
Not open for further replies.

12445566

MIS
Joined
Dec 15, 2002
Messages
1
Location
GB
I am creating a CD-ROM which requires the user to fill in some information and print it out. In order for them to be able to do this I need to write a text file on their hard drive using fileio xtra. This is just for people using Windows.

Is there an easy way of determining the users Hard drive letter (C:) so that I can allocate a path to write the text file to?
 
I thought every PC has "C" drive… Anyway if you want to know the letter of the primary drive (where the OS lives) just do:
--
put getOSDirectory().char[1]
-- "C"

Kenneth Kawamoto
 
Kenneth,

Is it possible to determine the floppy drive letter, and return an error if the floppy drive is empty or doesn't exist?

Thanks,
Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top