🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Create Directory.

#16222
From: Remy Lebeau (TeamB)
Date: Wed, 28 May 2003 00:55
16 lines
1594 bytes
"Safari" <Safari@alloymail.com> wrote in message
news:3ed40507@newsgroups.borland.com...

> How can i create "MyDrive:\MyDir1\MyDir2\MyDir3\MyDir...X" at once?

Use the VCL function ForceDirectories().

If you do not want to use the VCL, then there are no API function for what
you ask.  You will have to do what ForceDirectories() does internally -
parse the individual pieces of the path and attempt to create every folder
one after the other in sequence via CreateDirectory() until either the path
is finished or an error occurs.


Gambit
Technical Details
Message-ID: <3ed40858$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3ed40507@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,1bdc5cdf62081a2,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-27 17:59:51 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3ed40507@newsgroups.borland.com>
Subject: Re: Create Directory.
Date: Tue, 27 May 2003 17:55:24 -0700
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3ed40858$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1054083160 207.175.226.26 (27 May 2003 17:52:40 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail