🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Another application's path question.

#17462
From: Jeff Douglass
Date: Tue, 25 Mar 2003 15:44
28 lines
2280 bytes
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: <3e807afd$1@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

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,fa57852cb200d57,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-03-25 08:00:04 PST
From: "Jeff Douglass" <.>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Another application's path question.
Date: Tue, 25 Mar 2003 08:44:18 -0700
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
NNTP-Posting-Host: 68.2.177.21
Message-ID: <3e807afd$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1048607485 68.2.177.21 (25 Mar 2003 07:51:25 -0800)
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