Article View: borland.public.cppbuilder.nativeapi
Article #17376Re: Another application's path question.
From: Rodolfo Frino - Stargate Softwar...
Date: Tue, 25 Mar 2003 22:38
Date: Tue, 25 Mar 2003 22:38
26 lines
2028 bytes
2028 bytes
For what you explain I assume that the user will select both the drive
and the installation directory. Then you want the same directory structure
as the default structure below the InstallationDirectory. If this is the
case,
you can use this approach:
1) First Create the Installation Directory as required
// maybe from a TDirectoryListBox and a TDriveComboBox
//String InstallationDir = ComposeInstallationDir("D", "nms");
//String InstallationDir =whatever function you write;
//String InstallationDir = "C:\\Visinet\\"; //InstallationDir has to
have this format
String InstallationDir = "D:\\mns\\"; //another example
2) Then create the directory structure below the Installation directory
CreateDir(InstallationDir);
CreateDir(InstallationDir + "Drivers");
CreateDir(InstallationDir + "FEP");
CreateDir(InstallationDir + "GUI");
CreateDir(InstallationDir + "Runtim");
Note that CreateDir() is the VCL function and not the API which has 2
arguments
Rodolfo
Technical Details
Message-ID:
<3e80e35d@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-03!sn-xit-01!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-mailReferences:
<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-25 15:24:35 PST From: "Rodolfo Frino - Stargate Software" <starcinema@eftel.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3e807afd$1@newsgroups.borland.com> Subject: Re: Another application's path question. Date: Wed, 26 Mar 2003 09:38:40 +1100 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 203.129.132.171 Message-ID: <3e80e35d@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1048634205 203.129.132.171 (25 Mar 2003 15:16:45 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-03!sn-xit-01!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