Created
June 22, 2015 20:03
-
-
Save dnorton/eeed81c93dda9a82163a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set DIR_BASE=C:\nonexisting_dir | |
:test_dir | |
if exist %DIR_BASE%\* ( | |
echo %DIR_BASE% is a Directory | |
) else ( | |
echo %DIR_BASE% is Not a Directory | |
set DIR_BASE=C:\existing_dir | |
goto :test_dir | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment