WSH@Workshop 
HOME > WSHリファレンス > File オブジェクト > Size

Size (File オブジェクト)

object.Size

引数

object
Folder オブジェクトの名前を指定します。

解説

ファイルのサイズを返します。
このプロパティは読み取り専用です。

使用例

Set objFso = CreateObject("Scripting.FileSystemObject")

Set objFile = objFso.GetFile("c:\test.txt")

WScript.Echo objFile.Size

関連項目

CopyDeleteMoveOpenAsTextStreamAttributesDateCreatedDateLastAccessedDateLastModified
DriveNameParentFolderPathShortNameShortPathType



WSHリファレンス

FileSystemObject オブジェクト
Drive オブジェクト
Folder オブジェクト
File オブジェクト
Drives コレクション
Folders コレクション
Files コレクション


Copyright (C) 2006-2008 WSH@Workshop All rights reserved.