Skip to content

Instantly share code, notes, and snippets.

@dnorton
Created June 22, 2015 20:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dnorton/eeed81c93dda9a82163a to your computer and use it in GitHub Desktop.
Save dnorton/eeed81c93dda9a82163a to your computer and use it in GitHub Desktop.
@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