Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
RHCSA, RHCE, AWS, Docker, Kubernetes Training
Sanjeewani95
Updated:
Tuesday at 10:28 AM
🛡️ Kaspersky Antivirus – 1 Year / 1 Device | Rs. 2,300 | Only 9 Left
KSPathirana
Updated:
Monday at 2:42 PM
Ad icon
Professional CCTV Installation Service
Techguy231
Updated:
Sep 6, 2026
Ad icon
I'll research & write an article - Rs. 2000 onwards
Blogerwiki
Updated:
Sep 3, 2026
House Plan
lenura
Updated:
Sep 2, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Help
Batch programming help
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="pjayampathi" data-source="post: 3211828" data-attributes="member: 74195"><p><strong>@ECHO OFF</strong></p><p><strong>CLS</strong></p><p><strong>:LOOP</strong></p><p><strong>ECHO A. Menu item A</strong></p><p><strong>ECHO B. Menu item B</strong></p><p><strong>ECHO C. Menu item C</strong></p><p><strong>ECHO Q. Quit</strong></p><p><strong>:: SET /P prompts for input and sets the variable</strong></p><p><strong>:: to whatever the user types</strong></p><p><strong>SET Choice=</strong></p><p><strong>SET /P Choice=Type the letter and press Enter: </strong></p><p><strong>:: The syntax in the next line extracts the substring</strong></p><p><strong>:: starting at 0 (the beginning) and 1 character long</strong></p><p><strong>IF NOT '%Choice%'=='' SET Choice=%Choice:~0,1%</strong></p><p><strong>ECHO.</strong></p><p><strong>:: /I makes the IF comparison case-insensitive</strong></p><p><strong>IF /I '%Choice%'=='A' GOTO ItemA</strong></p><p><strong>IF /I '%Choice%'=='B' GOTO ItemB</strong></p><p><strong>IF /I '%Choice%'=='C' GOTO ItemC</strong></p><p><strong>IF /I '%Choice%'=='Q' GOTO End</strong></p><p><strong>ECHO "%Choice%" is not valid. Please try again.</strong></p><p><strong>ECHO.</strong></p><p><strong>GOTO Loop</strong></p><p><strong>:ItemA</strong></p><p><strong>ECHO Insert commands for Item A.</strong></p><p><strong>GOTO Again</strong></p><p><strong>:ItemB</strong></p><p><strong>ECHO Insert commands for Item B.</strong></p><p><strong>GOTO Again</strong></p><p><strong>:ItemC</strong></p><p><strong>ECHO Insert commands for Item C.</strong></p><p><strong>GOTO Again</strong></p><p><strong>:Again</strong></p><p><strong>PAUSE</strong></p><p><strong>CLS</strong></p><p><strong>GOTO Loop</strong></p><p><strong>:End</strong></p><p><strong></strong></p></blockquote><p></p>
[QUOTE="pjayampathi, post: 3211828, member: 74195"] [B]@ECHO OFF CLS :LOOP ECHO A. Menu item A ECHO B. Menu item B ECHO C. Menu item C ECHO Q. Quit :: SET /P prompts for input and sets the variable :: to whatever the user types SET Choice= SET /P Choice=Type the letter and press Enter: :: The syntax in the next line extracts the substring :: starting at 0 (the beginning) and 1 character long IF NOT '%Choice%'=='' SET Choice=%Choice:~0,1% ECHO. :: /I makes the IF comparison case-insensitive IF /I '%Choice%'=='A' GOTO ItemA IF /I '%Choice%'=='B' GOTO ItemB IF /I '%Choice%'=='C' GOTO ItemC IF /I '%Choice%'=='Q' GOTO End ECHO "%Choice%" is not valid. Please try again. ECHO. GOTO Loop :ItemA ECHO Insert commands for Item A. GOTO Again :ItemB ECHO Insert commands for Item B. GOTO Again :ItemC ECHO Insert commands for Item C. GOTO Again :Again PAUSE CLS GOTO Loop :End [/B] [/QUOTE]
Insert quotes…
Verification
Awruddata maasa keeyada?
Post reply
Top
Bottom