http://bugs.winehq.com/show_bug.cgi?id=1564
Summary: in wcmd.exe, "if exist %directory%" always false Product: Wine Version: 20030508 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-programs AssignedTo: wine-bugs@winehq.com ReportedBy: winehq@ellisw.net
"if exist %somefile%" works correctly. But on a directory, it always returns false. So a statement like: if not exist %mydir% mkdir %mydir% will always execute the mkdir statement, even if the directory already exists.