|
Attributes (File オブジェクト)
object.Attributes
引数
解説
ファイルの属性を設定します。
使用例
Set objFso = CreateObject("Scripting.FileSystemObject")
Set objFile = objFso.GetFile("c:\test.txt")
' 読取専用に変更
objFile.Attributes = 1
' 属性を表示
WScript.Echo objFile.Attributes
関連項目
Copy|Delete|Move|OpenAsTextStream|DateCreated|DateLastAccessed|DateLastModified|Drive| |
WSHリファレンス
FileSystemObject オブジェクト Drive オブジェクト Folder オブジェクト File オブジェクト Drives コレクション Folders コレクション Files コレクション |