GetFileAttributes メソッド (Shell オブジェクト)
指定するファイルまたはフォルダーの属性を返します。 strFile 属性を取得するファイルまたはフォルダーの完全パス。 次の値の組み合わせを返します。 値 説明 0 通常 1 書き換え禁止 2 隠しファイル 4 システム 8 ボリューム 16 ディレクトリ 32 アーカイブ 1024 エイリアス 2048 圧縮 EmEditor Professional Version 22.1 以上で利用できます。[JavaScript]
nAttr = shell.GetFileAttributes( strFile );
[VBScript]
nAttr = shell.GetFileAttributes( strFile )
パラメーター
例
[JavaScript]
nAttr = shell.GetFileAttributes( "C:\\\\Test\\\\file.txt" );
[VBScript]
nAttr = shell.GetFileAttributes( "C:\\Test\\file.txt" )
戻り値
バージョン