Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-3707

Batch file IF statement failure

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • Shell
    • None
    • Operating System: ReactOS
      Platform: x86 Hardware

    Description

      Hi,

      I am trying to use an IF statement in a batch file that fails with an unknown command error:

      if NOT "%COMPUTERNAME%"=="ANAKIN" goto DISTMODE:

      @REM Base setup for my Development machine

      set DEVLW=q:

      goto BEGINENVIRONMENT:

      :DISTMODE

      set DEVLW=c:

      :BEGINENVIRONMENT

      set BASE=develop
      set BASE_MAKE=develop

      set DEVROOT=%DEVLW%%BASE%
      set DEVROOT_MAKE=%DEVLW%/%BASE_MAKE%

      It will fail at the IF statement.

      Thanks

      Lothar

      Attachments

        Issue Links

          Activity

            People

              bug zilla Bug Zilla
              lollisoft lollisoft
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: