exist ファイル・ディレクトリの存在を確認する

@echo off

@setlocal

SET FILE=test.log

if exist %FILE% (

echo "EXIST"

)

if not exist %FILE% (

echo "NOT EXIST"

)