|
-
May 18th, 2000, 07:33 AM
#1
Thread Starter
Fanatic Member
I have never seen this type of library before until a member by the name of "Ramdasv" used it. It this new to VB 6 only and how do I find all of its properties and methods?
Code:
Dim Fobj
Set Fobj = CreateObject("Scripting.FileSystemObject")
Fobj.DeleteFolder "c:\AA"
Set Fobj = Nothing
Chemically Formulated As:
Dr. Nitro
-
May 18th, 2000, 08:00 AM
#2
Lively Member
THis is a vbscript feature just see in ur MS-InterDev
-
May 18th, 2000, 01:54 PM
#3
I have VB6 so I don't know if it is available in the lower versions but reference the 'Microsoft Scripting Runtime' then declare it like so:
Public fs as New Scripting.FileSystemObject
then when you type fs. it will give the list of methods
-
May 18th, 2000, 03:43 PM
#4
Member
The scripting library kicks ass 
The fileSystemObject stuff is part of the scripting library and provides access to the file system of the machine in an object fashion. You get file and folder objects, and in the scripting library there's a textstream object for reading and writing files. It's easy to use and much better than the old VB file stuff.
There's an MS how-to at
http://support.microsoft.com/support...1/18.ASP<br />
which should give you everything you need to get started.
K
[Edited by kleve on 05-19-2000 at 09:46 AM]
-
May 18th, 2000, 03:45 PM
#5
Fanatic Member
Yes it is VB6 only. I love it as well, makes file manipulation almost enjoyable.
Iain, thats with an i by the way!
-
May 19th, 2000, 12:54 AM
#6
Thread Starter
Fanatic Member
Thanks you gentlemen for the information.
Have a nice day!
Chemically Formulated As:
Dr. Nitro
-
May 19th, 2000, 01:04 AM
#7
Lively Member
You can add Microsfot Scripting Runtime "scrrun.dll" reference to your vb project you can use the object browser to find its properties and methods
Ramdas
-
May 19th, 2000, 09:27 AM
#8
Fanatic Member
Hi Nitro,
Have a look here :
http://msdn.microsoft.com/scripting/
its the scripting home page
zaf
{;->
-
May 19th, 2000, 01:10 PM
#9
Thread Starter
Fanatic Member
Thanks Zaf!
Haven't hear from you along time. Cool! Thanks for the information.
Also, thanks Ramdasv! You got me started with this tread.
Chemically Formulated As:
Dr. Nitro
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
|