Community
    • Login

    Specific Answer

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 3 Posters 836 Views 1 Watching
    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 Offline
      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 Offline
        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 Offline
          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 Offline
            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 Offline
              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 Offline
                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

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • First post
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors