<?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>以下のとおり。あらかじめ以下のようなスクリプトscriptname.ps1を作成しておき、実行してみる。 PS D:\work&gt; Get-Content .\scriptname.ps1 # 実行中のスクリプトの完全なパスとファイル名 Write-Host $PSCommandPath # 実行中のスクリプトの親ディレクトリの完全なパス Write-Host $PSScriptRoot # 実行中のスクリプト名 Write-Host (Split-Path -Path $PSCommandPath -Leaf -Resolve) # 実行中のスクリプト名 $MyInvocation.MyCom…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmunibus.hatenablog.com%2Fentry%2F2023%2F05%2F25%2F225946&quot; title=&quot;【PowerShell】実行中のスクリプトの完全なパス＋ファイル名、親ディレクトリの完全なパス、スクリプト名を得る - 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-05-25 22:59:46</published>
  <title>【PowerShell】実行中のスクリプトの完全なパス＋ファイル名、親ディレクトリの完全なパス、スクリプト名を得る</title>
  <type>rich</type>
  <url>https://munibus.hatenablog.com/entry/2023/05/25/225946</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
