EXIST is a comparison operator for the IF command


IF [NOT] EXIST filename command



C:\> If exist C:\demo\demo.txt Echo the file demo.txt does exist

“Confidence comes not from always being right but from not fearing to be wrong” ~ Peter T. Mcintyre

Related commands

IF command

Copyright © 1999-2024 SS64.com
Some rights reserved