Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
バッチプログラムの勉強
01-21-2015, 02:50 PM,
#2
RE: バッチプログラムの勉強
■コマンドの実行結果で分岐処理

実行コマンド | FindStr -C:"検索したい文字列">NUL
If ERRORLEVEL 1 ( 文字列が見つからない場合 ) Else ( 文字列が見つかった場合 )

クエリ系のDOSコマンドで、実行した結果をもとにして、分岐処理等をしたい場合、
返却値が説明文(文字列)であることが多いので、
実行結果から、目的の文字列を検索して判断する、という手法になるようです。

for 文を使う方法もあるみたいです。

http://q.hatena.ne.jp/1278059782



Messages In This Thread
バッチプログラムの勉強 - by umemura - 12-25-2014, 02:44 PM
RE: バッチプログラムの勉強 - by umemura - 01-21-2015, 02:50 PM
Forum Jump:


Users browsing this thread:
1 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
Query:
INSERT INTO mybb_threadviews (tid) VALUES('1192')