|
In article <7st4no$1uj$1@nnrp1.deja.com>,
Paul Thomas <radium_x@my-deja.com> wrote:
> In article <938591064.502611@ns0.klm.nl>,
> "F a b r i z i o" <Fabrizio1@usa.net> wrote:
> > Andreas Grueninger wrote in message
> <37f1be65.1790544@personalnews.de.uu.net>...
<SNIP>
> > >
> > >routine CreateDirectoryA
> > > module=KERNEL32
>
> > >RUN;
> >
> > Why build such extremely complex routines if
> >
> > rc = SYSTEM('MKDIR C:\TEMP\DIR');
> >
> > can solve the whole problem?
> >
> > Grtz., Fabrizio
> >
> >
>
> Quite simply because using the SYSTEM command opens a DOS box, and
> nothing is more unattractive.
In addition, if you're doing this for a large number of directories the
additional overhead of the SYSTEM call, even with the noxwait and
noxsync options set, is a huge burden compared with using the Windows
API approach.
Although I haven't any figures to hand, ISTR when I tested the two
approaches recently, creating over 10000 subdirectories in about 500
directories, the API method was several orders of magnitude faster.
Rgds
Bruce
--
Black Cat Solutions Ltd.
SAS Software Specialists
Sent via Deja.com http://www.deja.com/
Before you buy.
|