ELSE is an option for the IF command

 

IF EXIST sample.txt (Del file.txt) ELSE (copy File1.txt File2.txt)

 



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

Related:

IF command


© Copyright SS64.com 1999-2016
Some rights reserved