-
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
-
THis is a vbscript feature just see in ur MS-InterDev
-
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
-
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]
-
Yes it is VB6 only. I love it as well, makes file manipulation almost enjoyable.;)
-
Thanks you gentlemen for the information.
Have a nice day!
-
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
-
Hi Nitro,
Have a look here :
http://msdn.microsoft.com/scripting/
its the scripting home page
zaf
{;->
-
Thanks Zaf!
Haven't hear from you along time. Cool! Thanks for the information.
Also, thanks Ramdasv! You got me started with this tread.