Dean Wells [MVP] wrote:
> Having tested this prior to posting, I find no problem. Can you
> demonstrate where or under what conditions it fails?
C:\>if exist "C:\Documents and Settings\nul" (echo yes) else (echo no)
no
Next test. Leave out the quotes, and nothing happens.
Next test this, and it goes right
C:\>if exist "C:\Documents and Settings\" (echo yes) else (echo no)
yes
These are tricky tasks.
All the best, Timo
--
Prof. Timo Salmi ftp &
http://garbo.uwasa.fi/ archives 193.166.120.5
Department of Accounting and Business Finance ; University of Vaasa
private.php?do=newpm&u= <http://www.uwasa.fi/~ts/> ; FIN-65101, Finland
Useful script files and tricks
ftp://garbo.uwasa.fi/pc/link/tscmd.zip