<?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>Windows PowerShell</anon>
  </categories>
  <description>スクリプトを起動時にコマンドラインで与える引数の数を得るには、自動変数$argsを使用する。 hikisu1.ps1という以下のような1行だけのファイルを作成する。 $args.Length スクリプトを実行した結果は以下のとおり。 PS &gt; .\hikisu1.ps10PS &gt; .\hikisu1.ps1 a1PS &gt; .\hikisu1.ps1 a b2PS &gt; .\hikisu1.ps1 a b c3 hikisu2.ps1という以下のような2行だけのファイルを作成する。 $args.Length$args[0..($args.Length - 1)] スクリプトを実行した結果は以下のと…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmunibus.hatenablog.com%2Fentry%2F2017%2F04%2F26%2F070524&quot; title=&quot;【Windows 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>2017-04-26 07:05:24</published>
  <title>【Windows Powershell】スクリプトのコマンドライン引数の数を得る</title>
  <type>rich</type>
  <url>https://munibus.hatenablog.com/entry/2017/04/26/070524</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
