web 2.0

ASP GetSpecialFolder() - FileSystemObject

ASP GetSpecialFolder() - FileSystemObject This the tutorial/example asp script how to Get special folder.

ShotDev Focus:
- ASP & Get special folder.

Example

asp_filesystemobject_getspecialfolder.asp


<% Option Explicit %>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<%
Dim objFSO,str1,str2,str3
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
str1 = objFSO.GetSpecialFolder(0)
str2 = objFSO.GetSpecialFolder(1)
str3 = objFSO.GetSpecialFolder(2)
Response.write("<br>Windows Folder = " &str1)
Response.write("<br>System Folder = " &str2)
Response.write("<br>Tempolary Folder = " &str3)
Set objFSO = Nothing
%>
</body>
</html>

Create a asp file and save to path root-path/myasp/

Run
http://localhost/myasp/asp_filesystemobject_getspecialfolder.asp

Screenshot

ASP & Get special folder.
.
.
.

Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 1.00 out of 10)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.