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

Type (File オブジェクト)

object.Type

引数

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

解説

ファイルの種類を返します。
ファイルの拡張子の種類を示す「テキストドキュメント」という文字列を返します。
このプロパティは読み取り専用です。

使用例

Set objFso = CreateObject("Scripting.FileSystemObject")

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

WScript.Echo objFile.Type

関連項目

CopyDeleteMoveOpenAsTextStreamAttributesDateCreatedDateLastAccessedDateLastModified
DriveNameParentFolderPathShortNameShortPathSize



WSHリファレンス

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


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