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 8891987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:53:04+00:00 2026-06-14T22:53:04+00:00

Could somebody tell me why the following isnt working… :PHASE_ONE SET /P input_text= ENTER

  • 0

Could somebody tell me why the following isnt working…

:PHASE_ONE
SET /P input_text=   ENTER PASSWORD:

for /f "delims=1234567890" %%A in ("%input_text%") GOTO PHASE_ONE

Im trying to avoid numerical values

  • 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. Editorial Team
    Editorial Team
    2026-06-14T22:53:05+00:00Added an answer on June 14, 2026 at 10:53 pm

    Your syntax is wrong. You are missing a DO before your GOTO.

    However, your logic is also the wrong way round – you are actually ensuring that the password must only be numbers.

    The following will restrict it to letters, for example:

    @ECHO OFF
    
    :PHASE_ONE
    SET /P input_text=   ENTER PASSWORD:
    
    for /f "delims=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" %%A in ("%input_text%") DO GOTO PHASE_ONE
    
    ECHO.
    

    However, you would be better off using the FINDSTR command, such as this:

    @ECHO OFF
    
    :PHASE_ONE
    SET /P input_text=   ENTER PASSWORD:
    
    ECHO %input_text% | FINDSTR /I /R [0-9][0-9]*
    
    REM If Errorlevel is 1, then no matching string has been found,
    REM so we have a valid password (i.e. non-numeric).
    IF ERRORLEVEL 1 GOTO Passed
    GOTO PHASE_ONE
    
    :Passed
    ECHO Hooray - your password is fine.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

could somebody please tell me what the following expressions means: \d{6,8} As far as
Sorry to ask a dumb question, but could somebody tell me what the following
Could somebody tell me the difference between: int *p; p=(int*)malloc(10*sizeof(int)); free(p); or int *p;
I'm implementing now CPU schedule algorithms FCFS, SJF and Round Robin. Could somebody tell
Could somebody please explain or link to a resource that will tell me why
Could somebody tell me what is the proper way to convert a NSString* to
Could somebody tell me how can I convert byte[] to ArrayList by using C#
Could somebody tell me why I'm getting blank rows after running this code? ...
Could somebody please tell me how I can configure iReport 3.5 (nb) to use
could somebody please tell me how implement the hide function using on(). I've tried:

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.