ExtractFilePath(Application.ExeName)


If you just want to find out which drive is a CDROM, call GetLogicalDrives
or GetLogicalDriveStrings and then call GetDriveType for each drive until
one comes back as a CD-ROM.



> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of [EMAIL PROTECTED]
> Sent: Saturday, 1 September 2001 18:31
> To: Multiple recipients of list delphi
> Subject: Re: [DUG]: drive path extraction
>
>
> On Sat, 01 Sep 2001 12:51:35 +1200, you wrote:
>
> >hi all i was wondering how do i extract the drive path so i can store
> >it in a variable and use it for a install ie
> >
> >whatever:=extractdrivepath [code]
> >....
> >..
> what i mean is get the drive where the app is run from ie the cd rom
> as ppl have different amounts of drives and d:\ is not always the cd
> rom drive on all computers.
>
> ...
>    Brendon Toogood
>
> E-Mail [EMAIL PROTECTED]
> ------------------------------------------------------------------
> ---------
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
> Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
>

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to