Open In App

ASP GetSpecialFolder Method

 The ASP GetSpecialFolder Method is used to return a reference to a specified special Folder. 

Syntax:



FileSystemObject.GetSpecialFolder(foldername) 

Parameter Values 

FolderName: Required attribute. It specifies the name of the special folder to be returned. It contains a numeric value between 0 and 2 which represents three different types of folders as shown below. 



Example: Below code demonstrates the ASP GetSpecialFolder Method.  




<%
dim fs,p
set fs=Server.CreateObject("Scripting.FileSystemObject")
set p=fs.GetSpecialFolder(1)
Response.Write(p)
set p=nothing
set fs=nothing
%>

Output:

C:\WINNT\system32
Article Tags :