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