在VB6中获取文件大小 [英] Get file size in VB6
本文介绍了在VB6中获取文件大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在vb6代码中获取文件大小?我想在大小相同的文件之间进行权衡.
How can I get filesize in vb6 code? I want to compair between file of their size.
推荐答案
Dim ret As Long
ret = FileLen("c:\someFile.ext")
If ret > 0 Then 'or simply "If ret Then"
'do your thing...
End If
'or
Dim ret As Boolean
ret = FileLen("c:\someFile.ext") > 0
If ret = True Then '-||-
'do your thing...
End If
检查文件是否存在.
只是Google首先提出问题.这是链接-> "http://www.vbforums.com/showthread.php?t=498720"
Check if the File Exists.
Just Google the question first. Here''s the link-> "http://www.vbforums.com/showthread.php?t=498720"
这篇关于在VB6中获取文件大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文