Yep, I tried the GetFullPathName but it did not even seem to update the last part,
which I assume was say the filename.
I needed the whole path.
I had a setup program which shelled out to my program at the end of install. It passed
the path as a short filename. It didn't matter in the end as I had forgot about
ParamStr(0) which contains the path to the program which was all I wanted.
Cheers
Chris
Christopher Crowe (Software Developer)
Microsoft MVP, MCP
Adrock Software
Byte Computer & Software LTD
P.O Box 13-155
Christchurch
New Zealand
Phone/Fax (NZ) 03-3651-112
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Patrick Dunford
> Sent: Saturday, 10 April 1999 20:58
> To: Multiple recipients of list delphi
> Subject: RE: [DUG]: Getting the long filename from a short one?
>
>
> Oh I see what you mean.
>
> Isn't there an API function for that? :)
>
> There is an API function called "GetFullPathName" which appears to
> correspond to Delphi's ExpandFileName.
>
> What I was meaning to explain back there is that short names are not
> generated automatically from long names and neither are long names
> automatically generated from short names (obviously). But I see you meant
> the whole path, not just the filename.
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> > Behalf Of Chris Crowe
> > Sent: Saturday, 10 April 1999 20:20
> > To: Multiple recipients of list delphi
> > Subject: RE: [DUG]: Getting the long filename from a short one?
>
> snip
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGPfreeware 6.0.2i
>
> iQA/AwUBNw5ou5/ufSMMVdBMEQK2tgCg+VI0g27V05oAo/zVIBVT4db5pMkAoN2t
> /oJQw5JxIqDajwm7kMYWVNIL
> =JQoT
> -----END PGP SIGNATURE-----
>
> ------------------------------------------------------------------
> ---------
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
>
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz