The quote " character is illegal in Windows filenames. Therefore, what you are passing to the OS is taken as the empty string.
And when you search for the empty string, dir "", you get everything.
You are effectively asking, is there anything in the current directory. Which will always be true.
In reply to Re: true from (-e "") on Windoze (" is an illegal filename character
by BrowserUk
in thread true from (-e "") on Windoze
by CarolinaPerler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |