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