|
ASP
Folder and Files Script |
| |
File Related data
DateLastModified, DateLastAccessed, DateCreated, Drive,
Name, ParentFolder,Path, ShortName, ShortPath, Size,
Type, Attributes. |
|
|
Get file related data
<%
Set fso = CreateObject("Scripting.FileSystemObject")
Set a = fso.GetFile(Server.MapPath("\") & "\index.asp")
Response.Write ("DateLastModified: " &
a.DateLastModified & "<BR>")
Response.Write ("DateLastAccessed: " &
a.DateLastAccessed & "<BR>")
Response.Write ("DateCreated: " & a.DateCreated &
"<BR>")
Response.Write ("Drive: " & a.Drive & "<BR>")
Response.Write ("Name: " & a.Name & "<BR>")
Response.Write ("ParentFolder: " & a.ParentFolder &
"<BR>")
Response.Write ("Path: " & a.Path & "<BR>")
Response.Write ("ShortName: " & a.ShortName & "<BR>")
Response.Write ("ShortPath: " & a.ShortPath & "<BR>")
Response.Write ("Size: " & a.Size & "<BR>")
Response.Write ("Type: " & a.Type & "<BR>")
Response.Write ("Attributes: " & a.Attributes & "<BR>")
Set fileObject = Nothing
Set fso = Nothing
%> |
|
|
Folder Related data
DateLastModified, DateLastAccessed, DateCreated, Drive,
Name, ParentFolder, Path, ShortName, ShortPath, Size,
Type, Attributes, IsRootFolder, Subfolders, Files (get
list of Folder/files). |
|
|
Get folder related data
<%
Set fso = CreateObject("Scripting.FileSystemObject")
Set a = fso.GetFolder(Server.MapPath("\tryit\"))
Response.Write ("DateLastModified: " &
a.DateLastModified & "<BR>")
Response.Write ("DateLastAccessed: " &
a.DateLastAccessed & "<BR>")
Response.Write ("DateCreated: " & a.DateCreated &
"<BR>")
Response.Write ("Drive: " & a.Drive & "<BR>")
Response.Write ("Name: " & a.Name & "<BR>")
Response.Write ("ParentFolder: " & a.ParentFolder &
"<BR>")
Response.Write ("Path: " & a.Path & "<BR>")
Response.Write ("ShortName: " & a.ShortName & "<BR>")
Response.Write ("ShortPath: " & a.ShortPath & "<BR>")
Response.Write ("Size: " & a.Size & "<BR>")
Response.Write ("Type: " & a.Type & "<BR>")
Response.Write ("Attributes: " & a.Attributes & "<BR>")
Response.Write ("IsRootFolder: " & a.IsRootFolder &
"<BR>")
' to get list of files here
' to get list of folders here
Set a = Nothing
Set fso = Nothing
%> |
| |
| |
|
|
|
DOWNLOAD FILE (PDF) |
|
|
|
|
|
: "dikutip
dari berbagai sumber." |
|
|
 |
RESOURCES | |
 |
FREEWARE |
| |
Change Type 1.0 Clear Template 1.0 Cryptext
3.3 HJ Split 2.2 TweakUI W98 Winamp 5.02 | |
 |
SHAREWARE |
| |
Linguist 1.0 Picaview 1.31 SafeClean 3.02 Winhex 10.54
Winrar 3.11 Winzip 9.0 | |
 |
TUTORIAL |
|
|
|
|
|
|
|
|
|
|
|