Software >> OS >> Windows >> Command Line >> How to use if exist to check for file/dir

IF EXIST <filename or directory name> GOTO EXISTS :DONOTEXIST <commands for file dont exist eg. create dir> :EXISTS <commands for file/dir already exist>