Show/Hide Toolbars

EmEditor 説明

導航: EmEditor 說明 > 巨集參考 > Shell 對象 > 方法

巨集: GetFileAttributes 方法 (Shell 對象)

Scroll 上一頁 首頁 下一頁 其他
EmEditor 首頁 - EmEditor 說明 - EmEditor 巨集參考 - Shell 對象

GetFileAttributes 方法

返回指定檔案或資料夾的屬性。

[JavaScript]

nAttr = shell.GetFileAttributes( strFile );

[VBScript]

nAttr = shell.GetFileAttributes( strFile )

參數

strFile

用於檢索屬性的檔案或資料夾的完整路徑和名稱。

範例

[JavaScript]

nAttr = shell.GetFileAttributes( "C:\\Test\\file.txt" );

[VBScript]

nAttr = shell.GetFileAttributes( "C:\Test\file.txt" )

返回值

返回以下值的組合。

描述

0

正常

1

唯讀

2

隱藏

4

系統

8

數量

16

目錄

32

封存

1024

別名

2048

已壓縮

版本

支持 EmEditor Professional 22.1 或之後的版本。

Copyright © 2003-2023 by Emurasoft, Inc.