Abyssmedia.com Forum Index Abyssmedia.com
Abyssmedia Support Forums
 
  FAQ    Search    Memberlist    Usergroups   Register 
  Profile    Log in to check your private messages    Log in 

XP-compatible Choise-script - User-input friendly batch-example

 
Post new topic   Reply to topic    Abyssmedia.com Forum Index -> Quick Batch File Compiler
View previous topic :: View next topic  
Author Message
Joaquin



Joined: 28 Feb 2006
Posts: 2
Location: Medellín - Republica de Colombia

PostPosted: Sun Mar 12, 2006 12:06 pm    Post subject: Reply with quote

In the Help-file of Quick Batch File Compiler you talk about an
"XP-version" of the CHOICE-command script?!? I'm new in here and that's
maby the reason that I couldn't find it...mmm
..but if someone have interest, I post one in here.

---------------------------------------------

@echo off
Setlocal Enableextensions Enabledelayedexpansion
Title a Choice alt. for Win-XP by J. DeServantes in 2005
:inicio
cls
:otravez
Echo.
Echo. type 1,2 or 3...
Echo.
set choice=
set /p choice=...then press Enter to continue.
set deci=You pressed the key
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='1' set no=One & goto contesta
if '%choice%'=='2' set no=Two & goto contesta
if '%choice%'=='3' set no=Three & goto contesta
if '%choice%'==' ' exit
Echo.
Echo. %choice% is not valid, try again! (...or space for exit)
goto otravez
:contesta
Echo.
Echo. %deci% %no%!
Echo.
Pause & goto inicio


----------------------------------------------
Copy and past, modify or enjoy...

Br. Joaquin form the sunny Colombia
----------------------------------------------
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Abyssmedia.com Forum Index -> Quick Batch File Compiler All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2011 phpBB Group