# IF Not Exist wildcard for directories>

• ### Question

• So this works if the wildcard is a file:

if not exist "path\to\file\*.*" goto next

But it doesn't work for directories, does anyone know an easy way to accomplish that using a wildcard fir directories, ie if no directories exist in /path/to/file goto next

Friday, July 15, 2011 8:31 PM