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>InduSoft</strong> <strong>Web</strong> <strong>Studio</strong> <strong>VBScript</strong> <strong>Reference</strong> <strong>Manual</strong><br />

<strong>VBScript</strong> Folders Collection<br />

Collection of all Folder objects contained within a Folder object.<br />

Folders Collection Methods<br />

Properties Description<br />

Add Adds a new Folder to a Folders collection<br />

Folders Collection Properties<br />

Properties Description<br />

Count Returns the number of items in a collection. Read-only<br />

Item Returns an item on the specified key. Read/Write<br />

The following code illustrates how to get a Folders collection and how to iterate the collection using the<br />

For Each...Next statement:<br />

Sub ShowFolderList(folderspec)<br />

Dim fs, f, f1, fc, s<br />

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

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

Set fc = f.SubFolders<br />

For Each f1 in fc<br />

s = s & f1.name<br />

s = s & vbCrLf<br />

Next<br />

Response.Write s<br />

End Sub<br />

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

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

Saved successfully!

Ooh no, something went wrong!