检查出某个文件的大小

假设完全路径为c:\test\a\b.exe[code]dim path
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

你可能感兴趣的:(vbs)