1.

What Is Purpose Of Scripting.filesystemobject Class In Vbscript?

Answer»

This class PROVIDES file system OBJECTS which HELP the developers to work with drives, folders and files.

Example:

Dim oFS, DRIVE
Set oFS = CreateObject("Scripting.FileSystemObject")
Set drive = oFS.GetDrive(oFS.GetDriveName("C:"))
Document.write drive.VolumeName

This class provides file system objects which help the developers to work with drives, folders and files.

Example:

Dim oFS, drive
Set oFS = CreateObject("Scripting.FileSystemObject")
Set drive = oFS.GetDrive(oFS.GetDriveName("C:"))
Document.write drive.VolumeName



Discussion

No Comment Found