http://bugs.winehq.org/show_bug.cgi?id=26749
--- Comment #2 from Paul Romanyszyn pgr@arcelectronicsinc.com 2011-05-04 21:59:01 CDT --- Years ago I had to add set in front of the path=.... to set the path in wine. Changing the line to echo set path=foo > foo.bat
makes it work. Not a solution just more info.