Re: vb
From: Bob Butler (tiredofit_at_nospam.com)
Date: 04/04/04
- Next message: dkomo: "Database has gigantic size"
- Previous message: Chris Barber: "Re: Some advice for a beginner"
- In reply to: Chris Barber: "Re: vb"
- Next in thread: Chris Barber: "Re: vb"
- Reply: Chris Barber: "Re: vb"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 4 Apr 2004 08:51:38 -0700
"Chris Barber" <chris@blue-canoe.co.uk.NOSPAM> wrote in message
news:O6MXlklGEHA.3940@tk2msftngp13.phx.gbl
> I'm sorry, did I offend you somehow?
No, it's just that the FSO has been discussed at length in the newsgroups
many times
> It was merely a suggestion and seems to be the primary method of file
> system manipulation in Visual Basic and VBScript.
Actually, I'd list it as tertiary. VB has it's own file I/O statements and
the Windows API offers a lot of options for what VB does not handle easily.
FSO is *way* down the list.
> I can't see the difficulty in creating a filesystem tree using this
> method (aside from the fact that it's dog slow).
Well, there's one major reason why FSO should be avoided. It is extremely
slow. It also adds a lot of overhead to your app, requires another DLL that
may or may not be on most user's systems, exists in several
not-quite-compatible versions and is often disabled/deleted by system admins
because it's a favorite tool of hackers.
> Actually, I use API calls to do file system in VB but that's only
> because I have a wrapper, it's about a gazillion times faster, and
> don't want the pain of distributing the WScript runtimes.
VB's Dir function, with a little coding, can do the recursive search just
fine. The API calls are easier in some respectes because they can be used
recursively without a lot of additional code. Either approach is much
better than the FSO.
- Next message: dkomo: "Database has gigantic size"
- Previous message: Chris Barber: "Re: Some advice for a beginner"
- In reply to: Chris Barber: "Re: vb"
- Next in thread: Chris Barber: "Re: vb"
- Reply: Chris Barber: "Re: vb"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|