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=nothingset objfso=nothingset wshshell=nothing
本文共 316 字,大约阅读时间需要 1 分钟。
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=nothingset objfso=nothingset wshshell=nothing
转载于:https://my.oschina.net/Tingel/blog/115168