Set FileObj = Server.CreateObject(\"Scripting.FileSystemObject\") Set File = FileObj.GetFile(\"blah.mdb\") FileSize = File.Size Set File = Nothing Set FileObj = Nothing
Function GetSize(FileName) Set FileObj = Server.CreateObject(\"Scripting.FileSystemObject\") Set File = FileObj.GetFile(Server.MapPath(FileName)) GetSize = File.Size Set File = Nothing Set FileObj = Nothing End Function
Function GetSize(FileName) Set FileObj = Server.CreateObject(\"Scripting.FileSystemObject\") Set File = FileObj.GetFile(Server.MapPath(FileName)) GetSize = File.Size Set File = Nothing Set FileObj = Nothing End Function
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.