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
එක පැකේජ් එකයි මාසෙටම Unlimited Internet. තාමත් DATA CARD දාන්න සල්ලි වියදම් කරනවද? අඩුම මිලට අපෙන්.
sayuru bandara
Updated:
Tuesday at 12:30 PM
Ad icon
ඉන්ටර්නෙට් එකෙන් හරියටම සල්ලි හොයන්න සහ Success වෙන්න කැමතිද? 🚀 (E-Money & Success Stories)
siri sumana
Updated:
Saturday at 11:44 PM
Gemini AI PRO 18 months Offer
Hawaka
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 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
Haya warak paha keeyada? (haya wadi kireema paha)
Post reply
Top
Bottom