🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Another application's path question.

#17403
From: Jim Dodd
Date: Wed, 26 Mar 2003 14:56
46 lines
2992 bytes
Another useful VCL/CLX function is ForceDirectories() which will attempt
to create all the directories in a path.

The Help says:

bool __fastcall ForceDirectories(AnsiString Dir);
ForceDirectories creates a new directory as specified in Dir, which must 
be a fully-qualified path name. If the directories given in the path do 
not yet exist, ForceDirectories attempts to create them.

Regards,

Jim Dodd
Onset Computer Corp.

Jeff Douglass wrote:
> I have asked a bunch of directory and path questions over the past few days
> and have received all the answers I need. After further thinking I have come
> to conclustion that maby the question I should have asked was this since
> almost everyone should have an answer for it since it must me common. I have
> an app that REQUIRES a certain directory structure to work. Up untill now I
> have hard coded the directory structure using #defines and actually
> delivered this directory structure along with the app's installation media.
> For example; the app requred the follow dir structure
> 
> c:\Visinet ---- this is the app's main/master directory
> c:\Visinet\GUI --- location of the gui
> c:\Visinet\Drivers --- location of driver exes required by app
> c:\Visinet\FEP ---- location of the app's server
> c:\Visinet\Runtim --- location of the app's data base files
> 
> also, there are required directories within some of these directories.
> 
> Overall question. I now want to allow the user to be able to control the
> app's master directory. ie change c:\visinet to say d:\nms
> 
> What is the standard/best way for the app to handle this? I have implemented
> a mechanism using the info received from the recent postings but am not very
> pleased with my implementation so I figured I would ask everyone else how
> they handle this. Sample code or links would be great.
> 
> Thanks for any and all suggestions.
> 
> Jeff
> 
> 
Technical Details
Message-ID: <3e81bf7c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3e807afd$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,fa57852cb200d57
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-03-26 20:56:02 PST
Date: Wed, 26 Mar 2003 09:56:03 -0500
From: Jim Dodd <bcbuilderboy@yahoo.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2.1) Gecko/20021130
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Another application's path question.
References: <3e807afd$1@newsgroups.borland.com>
In-Reply-To: <3e807afd$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 65.161.163.42
Message-ID: <3e81bf7c@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1048690556 65.161.163.42 (26 Mar 2003 06:55:56 -0800)
Lines: 47
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail