-
October 31st, 2001, 09:59 AM
#1
How to reference the filesystemobject
Dear Gurus,
I'm trying to replace my Dir, FileCopy and Kill statements with the FileSystemObject.
HOWEVER, my VB6 doesn't seem to know about this.
Anyone can tell me wich reference I use?
When I type: Dim fso as Files.... it´s not autocompleted, know what I mean?
Grzzz & thanx, Braniac.
-
October 31st, 2001, 10:25 AM
#2
Re: How to reference the filesystemobject
'early binding
Dim oFileSystem As New Scripting.FileSystemObject
'or late-bind with: ('Reference "Microsoft Scripting Runtime" (scrrun.dll) available at http://www.microsoft.com/scripting)
Dim oFileSystem As Object
Set oFileSystem = CreateObject("Scripting.FileSystemObject")
Iouri Boutchkine
iouri@hotsheet.com
-
October 31st, 2001, 10:27 AM
#3
Re: How to reference the filesystemobject
The FileSystemObject is in SCRRUN.DLL... you'll have to set a reference to this file (ie. Project-> References) look for "Microsoft Scripting Runtime" in the list. If it isn't there, use the browse button to locate it in the Windows\system directory.
-
November 1st, 2001, 04:59 AM
#4
Re: How to reference the filesystemobject
Thanx guys, that's right on the spot!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|