When using windows cmd.exe, if we want to know whether an existing File System Object(FSO) is a file or a directory, all we have to do, is to append a BackSlash at the end of the object name and then check for its existence:
if exist example (
if exist example\ (
echo This is a...