[Bug 22431] New: if exist "%VAR%"\file does not work

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Apr 20 07:05:42 CDT 2010


http://bugs.winehq.org/show_bug.cgi?id=22431

           Summary: if exist "%VAR%"\file does not work
           Product: Wine
           Version: 1.1.42
          Platform: x86-64
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: cmd
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: gabspeck at gmail.com


The following logic fails on Wine's cmd, but works successfully on Windows',
i.e. if you set the DLC variable pointing to a directory with a "version" file
inside, it will still print "DLC variable not set" on Wine, but will print "OK"
on Windows:

set DLC=C:\dlc91e
IF EXIST "%DLC%"\version GOTO :BIN
echo "DLC Variable not set"

:BIN
echo "OK"

The following works, though:

IF EXIST "%DLC%\version" ...

I found that on some administration scripts of a commercial application.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list