<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>slowalpaca</author_name>
  <author_url>https://blog.hatena.ne.jp/slowalpaca/</author_url>
  <blog_title>帰りは気楽な歌で</blog_title>
  <blog_url>https://slowalpaca.hatenablog.com/</blog_url>
  <categories>
    <anon>Windowsコマンド</anon>
    <anon>Windows</anon>
  </categories>
  <description>これまたlinuxのシェルを触っていて便利だなと思ったのが、プログラムの標準出力を変数に格納したりして、処理分岐に使える、という事。 VAR=`date +%Y%m%d` echo ${VAR} [結果] 20140724 で、windowsコマンドの場合はこれをforコマンドでやることになる。 下記の場合は、JP1(ver9)のajsshowコマンドを使い、第一引数で指定したジョブネットがどんな状態かをチェックするバッチだ。 プログラムの標準出力をBSTATUSという変数に渡して、findstrで&quot;正常終了&quot;か&quot;異常検出終了&quot;か&quot;警告検出終了&quot;を見つけたら、戻り値は 0 になる。 [test…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fslowalpaca.hatenablog.com%2Fentry%2F2014%2F07%2F24%2F221255&quot; title=&quot;Windowsコマンドでプログラムの標準出力を読む - 帰りは気楽な歌で&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>2014-07-24 22:12:55</published>
  <title>Windowsコマンドでプログラムの標準出力を読む</title>
  <type>rich</type>
  <url>https://slowalpaca.hatenablog.com/entry/2014/07/24/221255</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
