X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

ASP GetSpecialFolder Method


FileSystemObject Object Reference Complete FileSystemObject Object Reference

The GetSpecialFolder method returns the path to some of Windows' special folders.

Syntax

FileSystemObject.GetSpecialFolder(foldername)

Parameter Description
foldername Required. The folder to be returned.
0=WindowsFolder - Contains files installed by the Windows operating system
1=SystemFolder - Contains libraries, fonts, and device drivers
2=TemporaryFolder - Used to store temporary files


Example

<%
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


FileSystemObject Object Reference Complete FileSystemObject Object Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook