<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>u_7cc</author_name>
  <author_url>https://blog.hatena.ne.jp/u_7cc/</author_url>
  <blog_title>7cc@はてなブログ</blog_title>
  <blog_url>https://7cc.hatenadiary.jp/</blog_url>
  <categories>
    <anon>PowerShell</anon>
    <anon>Windows</anon>
  </categories>
  <description>「読み取り専用」や「隠しファイル」の設定 Set-ItemProperty は使わないほうが楽 属性の実体は数値。ビット演算で求める 文字でキャストする方法もある attrib.exe を使ったほうが簡単 属性の取得 $item = gi .\file.txt $item.Attributes # Archive [int]$item.Attributes #32 属性の設定 入力補完が効くけど長い $item.Attributes = [System.IO.FileAttributes]::Hidden -bor [System.IO.FileAttributes]::Archive 短いけ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2F7cc.hatenadiary.jp%2Fentry%2Fpowershell_file_attr&quot; title=&quot;PowerShellでファイル属性操作 - 7cc@はてなブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-02-17 18:11:55</published>
  <title>PowerShellでファイル属性操作</title>
  <type>rich</type>
  <url>https://7cc.hatenadiary.jp/entry/powershell_file_attr</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
