🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Clean up my filepath

#4325
From: Thorsten Kettner
Date: Wed, 15 Feb 2006 07:14
10 lines
1385 bytes
Hi all,
I have a string containing path and name of a file, like this:
"C:\Dir1\Dir2\Dir3\..\..\SomeFile.ext". The path is correct and
I can access the file, but I would like to clean up the path for
diplay, i.e.: "C:\Dir1\SomeFile.ext". I know it wouldn't be to
hard to do the string manipulations myself, but I am too lazy 
and also quite curious if I could just ask the system for the 
clean path. Is there a command or a series of commands that 
gives/give me the cleaned up path?
Technical Details
Message-ID: <43f2e2db@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e97a769b105ea7a,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Thorsten Kettner" <QUESTIONBYthorsten.kettner@otto.de>
Sender: "Thorsten Kettner" <QUESTIONBYthorsten.kettner@otto.de>
Reply-To: "Thorsten Kettner" <QUESTIONBYthorsten.kettner@otto.de>
Subject: Clean up my filepath
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 80.85.196.92     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <43f2e2db@newsgroups.borland.com>
Date: 15 Feb 2006 00:14:19 -0700
X-Trace: newsgroups.borland.com 1139991259 207.105.83.66 (15 Feb 2006 00:14:19 -0700)
Lines: 10
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail