-
Notifications
You must be signed in to change notification settings - Fork 0
Windows Batch
Tana edited this page Jun 20, 2018
·
8 revisions
cd /d %~dp0if errorlevel 1 exit /berrorlevel 1 の 1 はエラーかどうかを判断するコマンドの終了コード。
コマンドによっては 1 以上がエラーであるとは限らないので適宜指定する。
(例: robocopy コマンドは終了コードがビット フラグで表現されているので扱いが特殊)
robocopy コマンドを活用するとスマートなバックアップタスクを作成する事ができる。
実装未記述。