On Sat, 1 Sep 2001 23:39:01 +1200, you wrote:

>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.
>
>
>
thanx partick, but what i want is to find the path so i can run a app
from a different directory on that drive where the orgional app is
running

ie say the app is running on e:\
i want my app to extract that path e:\ in to a variable called drive
so then i can go something like

winexec(drive + 'apps\myapp.exe', sw_shownormal);


...
   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/

Reply via email to