<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>munibus</author_name>
  <author_url>https://blog.hatena.ne.jp/munibus/</author_url>
  <blog_title>Muni Bus</blog_title>
  <blog_url>https://munibus.hatenablog.com/</blog_url>
  <categories>
    <anon>PowerShell</anon>
  </categories>
  <description>$null自動変数を使う。以下、実用的ではないがわかりやすい例。 C:\WindowsとC:\の親ディレクトリを取り出そうとするが、C:\Windowsの親ディレクトリはC:\だが、C:\はルートディレクトリであり親ディレクトリがないためにヌルが戻ってくる。それを判定している。 PS &gt; $s = (get-item c:\windows).parent PS &gt; $s -eq $null False PS &gt; $s = (get-item c:\).parent PS &gt; $s -eq $null True 同様に、ファイル（win.ini）に対してDirectoryInfoクラスにしかない…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmunibus.hatenablog.com%2Fentry%2F2023%2F03%2F09%2F233219&quot; title=&quot;【PowerShell】NULL（ヌル）の判定 - Muni Bus&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>2023-03-09 23:32:19</published>
  <title>【PowerShell】NULL（ヌル）の判定</title>
  <type>rich</type>
  <url>https://munibus.hatenablog.com/entry/2023/03/09/233219</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
