Morpheusweb.it - Risorse per webmaster: script, ASP.NET, C#, Visual Basic .Net, tutorial, asp, javascript, css, php, html, java, ADO, VBScript, forms, frames, Active Server Pages, Dynamic HTML, database, gratis per webmaster e webdesigner

Size of a directory

To show the size of a directory on the server.


<%
Set FSO = Server.CreateObject ("Scripting.FileSystemObject")
Path = Server.MapPath("/my_directory/")
Set MyFolder = FSO.GetFolder(Path)
Response.write "The directory '" & Path & "' is " & MyFolder.Size & "bytes."
%>


Download code...


Print this page


 

Inizio pagina

risorse per webmaster