<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ktrito33</author_name>
  <author_url>https://blog.hatena.ne.jp/ktrito33/</author_url>
  <blog_title>怠日記</blog_title>
  <blog_url>https://nmk365.hatenablog.jp/</blog_url>
  <categories>
    <anon>VBScript</anon>
  </categories>
  <description>スクリプトの起動元の判定方法を紹介する。判定方法WScript.FullName で実行ファイルのパスが取得できる。WScript.Echo WScript.FullName▼WScript で実行された場合▼CScript で実行された場合C:\WINDOWS\system32\cscript.exeこの結果より WScript.FullName からファイル名を取ることで、wscript or cscript が判定できそうだと分かる。手っ取り早くやるなら、次のように WScript.FullName の末尾から11文字を取得するだけで事足りる。（念のため小文字に統一）WScript.Ec…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnmk365.hatenablog.jp%2Fentry%2F20240801%2F1722465000&quot; title=&quot;VBScript - WScript と CScript のどちらから起動されたのか判定する - 怠日記&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>2024-08-01 07:30:00</published>
  <title>VBScript - WScript と CScript のどちらから起動されたのか判定する</title>
  <type>rich</type>
  <url>https://nmk365.hatenablog.jp/entry/20240801/1722465000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
