Running `if exist a\*.* echo right` result:
Echoes "right" regardless of whether a is an empty directory
Running `if not exist a\*.* echo wrong` result:
If a is an empty directory, there is no echo; if a is a non-empty directory, it echoes "error"
It seems that `if (not) exist` cannot be used with `*.*`. What is the reason for this?
[ Last edited by crist on 2010-12-4 at 15:16 ]
Echoes "right" regardless of whether a is an empty directory
Running `if not exist a\*.* echo wrong` result:
If a is an empty directory, there is no echo; if a is a non-empty directory, it echoes "error"
It seems that `if (not) exist` cannot be used with `*.*`. What is the reason for this?
[ Last edited by crist on 2010-12-4 at 15:16 ]
