snippet library logo
in category
ASP / File Manipulation / Determine Filesize
Snippet details
ID: 112
Viewed: 1393
Added: 2002-04-07
Version:

User Rated at:
Rate This:
Snippets in this catagory         
Show Printable Version
Determine the filesize of a file on your server

General Details
Snippet uploaded by: Kings
Email : Kings_zASCH@hotmail.com
Snippet By: Kings

<!---Head--->
none

<!---Body--->


'What is the path of the file whose size you're interested in?
Dim strFileName
strFileName = "C:FooBarblah.txt"

'Create an instance of the FileSystemObject
Dim objFSO
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")

'Get a file object
Dim objFile
Set objFile = objFSO.GetFile(strFileName)

'Get the file size
Dim iFileSize
iFileSize = objFile.Size




No Reviews to show


Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.


Subject:

Reviewed By:

Write a review:





Terms of Conditions
Powered By
Avian Hosting
© 2005 snippetlibrary.com All Rights Reserved.