Click to See Complete Forum and Search --> : How to find....


ramesh_mssg
October 16th, 2001, 01:20 AM
I am having the Text File.How to find out the Size of the file using vb.
Pls Help .....

Ramesh

Cakkie
October 16th, 2001, 01:32 AM
Msgbox FileLen("c:\autoexec.bat")



will show a message containing the size of autoexec.bat in bytes

Tom Cannaerts
slisse@planetinternet.be

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook

Iouri
October 16th, 2001, 08:48 AM
Dim filesys,f As Object
Set filesys = CreateObject("Scripting.FileSystemObject")
Set f = filesys.GetFolder(folderpath)
Msgbox f.Size



Iouri Boutchkine
iouri@hotsheet.com