Added: Apr 07, 2002
Snippet uploaded by: Kings
Written By: Kings
Demo: Sorry, no demo
Determine the filesize of a file on your server
'What is the path of the file whose size you're interested in?
strFileName = "C:FooBarblah.txt"
'Create an instance of the FileSystemObject
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
'Get a file object
Set objFile = objFSO.GetFile(strFileName)
'Get the file size
iFileSize = objFile.Size
No Comments to show
Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.
Adding your comment. Please wait...
Thanks for adding your comment!. After further review it will be added.
There was a problem adding your comment. Please try again.
Please complete all the fields in the form before sending.