Community
    • Login

    Specific Answer

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 3 Posters 487 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Nathan LevesqueN
      Nathan Levesque
      last edited by Nathan Levesque

      Hi ! I want know if it’s possible to ask a specific answer to a question ?
      Exemple :

      set info4=
      Echo Do you understand ?
      set /p info4=

      I want the user to answer only “yes” or “no”

      Someone know pls ?

      Alan KilbornA rdipardoR 2 Replies Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @Nathan Levesque
        last edited by

        @Nathan-Levesque

        I don’t believe that question relates to Notepad++, so it won’t be considered on this forum.

        Nathan LevesqueN 1 Reply Last reply Reply Quote 0
        • Nathan LevesqueN
          Nathan Levesque @Alan Kilborn
          last edited by

          @Alan-Kilborn si si ça concerne notepad++

          Alan KilbornA 1 Reply Last reply Reply Quote 0
          • Alan KilbornA
            Alan Kilborn @Nathan Levesque
            last edited by

            @Nathan-Levesque said in Specific Answer:

            yes if it concerns notepad++

            Then please explain how.
            Not only will it validate your assertion that it concerns Notepad++, but it will put enough context around your inquiry to provide an answer.

            1 Reply Last reply Reply Quote 0
            • rdipardoR
              rdipardo @Nathan Levesque
              last edited by

              @Nathan-Levesque,
              il y a la commande CHOICE:

              @echo off
              CHOICE /C:YN /T:10 /D Y /N /M "Oui ou Non? [y/n] "
              IF ERRORLEVEL == 1 (
                ECHO "Vous avez choisi 'Oui'"
              ) ELSE IF ERRORLEVEL == 2 (
                ECHO "Vous avez choisi 'Non'"
              )
              PAUSE
              
              Alan KilbornA 1 Reply Last reply Reply Quote 1
              • Alan KilbornA
                Alan Kilborn @rdipardo
                last edited by

                @rdipardo

                Please don’t answer off-topic questions.
                OP was asked to show it is on-topic first.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors