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

ShortName (File オブジェクト)

object.ShortName

引数

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

解説

ファイルの「8.3形式」の短い形式のファイル名を返します。
「8.3形式」とは、8文字以内のフォルダ名と3文字以内の拡張子で表す形式です。
フォルダ名が8文字より長い場合、チルダ「~」を使用して8文字に縮めて表記します。
このプロパティは読み取り専用です。

使用例

Set objFso = Serrver.CreateObject("Scripting.FileSystemObject")

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

Response.Write objFile.ShortPath

関連項目

CopyDeleteMoveOpenAsTextStreamAttributesDateCreatedDateLastAccessedDateLastModified
DriveNameParentFolderPathShortPathSizeType



ASPリファレンス

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


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