Monday, December 17, 2007

How to get system folder on your computer

How to get system folder on your computer

S T E P - 1

- We need to use the FileSystemObject object to get the information:

<%

Dim fSys, f

Set fSys = CreateObject("Scripting.FileSystemObject")

%>

S T E P - 2

- Now we can get the system folder by using the GetSpecialFolder method:

<%

For i = 0 to 1

Set f = fSys.GetSpecialFolder(i)

Response.write ("

")

Next

%>

" & f & "" & f.size & "" & f.name & "


No comments: