Syntax for batch File for IF then ELSE
How to create batch File which can check if file exists then exit out else create new file?
Syntax for batch File for IF then ELSE
How to create batch File which can check if file exists then exit out else create new file?
An example:
@echo off
set "$file=the_file.txt"
if exist %$file% (exit) else (echo new>%$file%)