D:\>FileExist.bat D:\>if exist a.txt echo There is a.txt file in current directory! #打印批处理内容 There is a.txt file in current directory! # 执行批处理结果