18.01.2013 Views

VBScript Reference Manual for InduSoft Web Studio

VBScript Reference Manual for InduSoft Web Studio

VBScript Reference Manual for InduSoft Web Studio

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>VBScript</strong> <strong>Reference</strong> <strong>Manual</strong> <strong>InduSoft</strong> <strong>Web</strong> <strong>Studio</strong><br />

Folder Object<br />

The <strong>VBScript</strong> Folder object provides access to all the properties of a folder.<br />

Folder Object Methods<br />

Properties Description<br />

Copy Copies a folder from one location to another.<br />

Delete Deletes a folder.<br />

Move Moves a folder from one location to another.<br />

CreatTextFile Creates a file and returns a TextStream object.<br />

Folder Object Properties<br />

Properties Description<br />

Attributes The attributes of a folder.<br />

DateCreated The date and time a folder was created.<br />

DateLastAccessed The date and time that the folder was last accessed.<br />

DateLastModified The date and time that the folder was last modified.<br />

Drive The drive letter of the drive on which the folder resides.<br />

Files A Files collection of all File objects in the folder.<br />

IsRootFolder True if this is the root folder of a drive.<br />

Name The name of the folder.<br />

ParentFolder The Folder object <strong>for</strong> the parent of the folder.<br />

Path The file system path to the folder.<br />

ShortName The short name used by programs that require 8.3 names.<br />

ShortPath The short path used by programs that require 8.3 names.<br />

Size The size, in bytes, of all files and subfolders contained in a folder<br />

SubFolders A Folders collection containing all the folders in a Folder object<br />

The following code illustrates how to obtain a Folder object and how to return one of its properties:<br />

Sub ShowFolderInfo(folderspec)<br />

Dim fs, f, s,<br />

Set fs = CreateObject("Scripting.FileSystemObject")<br />

Set f = fs.GetFolder(folderspec)<br />

s = f.DateCreated<br />

Response.Write s<br />

End Sub<br />

34 <strong>InduSoft</strong>, Ltd.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!