🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #5510

Re: GetTempPath() and the ugly "~1" How to get the *full path* ??

#5510
From: Remy Lebeau (TeamB)
Date: Thu, 11 Aug 2005 01:25
21 lines
1683 bytes
"Oren Halvani" <NoSpam@fdtd.com> wrote in message
news:42fa9d15@newsgroups.borland.com...

> i'm using the below function to retrieve the current
> temp folder, it work ok, but i get this result:

So?  Just because portions of the path are in 8.3 format does not mean that
the path is invalid, because it is not.  You can still use 8.3 paths in
modern operations just fine.

> what do i need to get this full path and get rid of the ugly "~1"     ??

Why do you care whether you have a short path or a long path?  Both work
equally as well.

If you must get the long name, then pass the short path to either
GetLongPathName() or FindFirstFile().


Gambit
Technical Details
Message-ID: <42faa901$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!diablo.voicenet.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42fa9d15@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,420a348eb6918014
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <42fa9d15@newsgroups.borland.com>
Subject: Re: GetTempPath() and the ugly "~1"  How to get the *full path*  ??
Date: Wed, 10 Aug 2005 18:25:22 -0700
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <42faa901$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1123723521 68.69.17.41 (10 Aug 2005 18:25:21 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!diablo.voicenet.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail