path="c:\test\a\b.exe"
set wshshell=createobject("wscript.shell")
set objfso=createobject("scripting.filesystemobject")
set objfile=objfso.getfile(path)
msgbox objfile.size '输出文件大小
set objfile=nothing
set objfso=nothing
set wshshell=nothing
假设完全路径为c:\test\a\b.exe[code]dim path
转载于:https://my.oschina.net/Tingel/blog/115168