http://bugs.winehq.org/show_bug.cgi?id=7351
Summary: cmd.exe doesn't support %~dp0 syntax Product: Wine Version: unspecified Platform: Other OS/Version: other Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-console AssignedTo: wine-bugs@winehq.org ReportedBy: avarga@freemail.hu
Wine doesn't recognize the %~dp0 syntax in .cmd/.bat files, which is the Windows equivalent of `dirname $0` (as in d=drive and p=path of %0).
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-...