Hi,
I want to check the size of a file is Visual basic . This
File is already opened by the open statement . For getting
the size I am using something like this
Set fs = CreateObject("Scripting.FileSystemObject"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Set f = fs.GetFile("C:\VBProj\" & strCurFile)
MsgBox f.size
But@this code is giving the correct result only if the
file is closed . For already opened files it's giving
result 0.
How do i solve this problem . Please help...
Regards
I want to check the size of a file is Visual basic . This
File is already opened by the open statement . For getting
the size I am using something like this
Set fs = CreateObject("Scripting.FileSystemObject"
Set f = fs.GetFile("C:\VBProj\" & strCurFile)
MsgBox f.size
But@this code is giving the correct result only if the
file is closed . For already opened files it's giving
result 0.
How do i solve this problem . Please help...
Regards