rem コメント
≪remコマンドの使い方≫ @echo off rem これはカレントディレクトリにa.txtが存在したら rem 「exist!」と表示し、存在しなければ「not exist!」と rem 表示するバッチファイルです。 dir | find "a.txt" > nul if errorlevel 1 goto NOT echo exist! goto :EOF :NOT echo not exist!
Back to top