Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 113349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:41:18+00:00 2026-05-11T02:41:18+00:00

I have tried with the following, but it just says & was unexpected at

  • 0

I have tried with the following, but it just says ‘& was unexpected at this time.’

@echo off :enter-input echo Please enter a number between 1 and 15: echo 1 = Selection one echo 2 = Selection two echo 4 = Selection three echo 8 = Selection four echo x = Quit  set INPUT= set /P INPUT=Type number: %=%  if '%INPUT%' == '' goto enter-input if '%INPUT%' == 'x' goto end if '%INPUT%' == 'X' goto end  set /A %INPUT% if %INPUT% & 1 == 1 echo Selection one if %INPUT% & 2 == 2 echo Selection two if %INPUT% & 4 == 4 echo Selection three if %INPUT% & 8 == 8 echo Selection four  echo Done :end 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T02:41:18+00:00Added an answer on May 11, 2026 at 2:41 am

    I found a way of doing this.

    @echo off :enter-input echo Please enter a number between 1 and 15: echo 1 = Selection one echo 2 = Selection two echo 4 = Selection three echo 8 = Selection four echo x = Quit  set /P INPUT=Type number:  if '%INPUT%' == '' goto enter-input if '%INPUT%' == 'x' goto end if '%INPUT%' == 'X' goto end  set /A isOne = '(%INPUT% & 1) / 1' set /A isTwo = '(%INPUT% & 2) / 2' set /A isThree = '(%INPUT% & 4) / 4' set /A isFour = '(%INPUT% & 8) / 8'  if %isOne% == 1 echo Selection one if %isTwo% == 1 echo Selection two if %isThree% == 1 echo Selection three if %isFour% == 1 echo Selection four  echo Done :end 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 66k
  • Answers 66k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer The code as written here is still buggy - when… May 11, 2026 at 11:35 am
  • added an answer The answer was in the Button Click event, after the… May 11, 2026 at 11:35 am
  • added an answer I use a minor mode for all my 'override' key… May 11, 2026 at 11:35 am

Related Questions

I have tried with the following, but it just says & was unexpected at
So I've tried to work with the pure-CSS, never-use-tables-for-layout gospel, I really have. But
I've tried this both with and without the 'ExceptionType' parameter. I have an Error.aspx
Has anyone tried the ActiveRecord Intro Sample with C# 3.5? I somehow have the
I have tried <ul id=contact_list> <li id=phone>Local 604-555-5555</li> <li id=i18l_phone>Toll-Free 1-800-555-5555</li> </ul> with #contact_list
I have read an example and tried to duplicate it's methods but with weird
I have a method with an out parameter that tries to do a type
I have tried this... Dim myMatches As String() = System.Text.RegularExpressions.Regex.Split(postRow.Item(Post), \b\#\b) But it is
I have tried what seems like everything - I've done similiar things many times
I have tried the following two statements: SELECT col FROM db.tbl WHERE col (LIKE

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.