![]()
[<<]Message[>>] [<<]Author[>>] [<<]Subject[>>] [<<]Thread[>>]
Number : 9444 Date : 2004-12-06 Author : John Zeman Subject : Re: Good Old Choise Command Size(KB) : 1
--- In xxcopy@yahoogroups.com, "des4212001" wrote: > > Here's the "old fashion" (easy!) way under MS-DOS: > > Echo Off > CHOISE /N /C:SL /T:L 5 "(S)hort or (L)ong? " > xxcopy /EC/CF:{Part 1}/PZO > IF ERRORLEVEL 1 GOTO Cont1 > xxcopy /CE/CF:{Part 2)/PZO > :Cont1 > xxcopy /CE/CF:Part 3}/PZO > :etc > :etc > IF ERRORLEVEL 2 GOTO Cont2 > xxcopy /CE/CF:{Part X)/PZO > :Cont2 > Pause > > (This is an xxcopy question because I ah, used xxcopy in the > example!) Now, I could probably kludge up a CSript, or a VBScript, > or even an Autoit Script to get there. However... it Seems like one > of you Batch File Gurus can save me a lot of thinking? It's just > something I haven't used before and hence missed right? Hint please? > > DES There's one problem with the good ol' choice command. It's not available in Windows XP, and I suspect 2000 and NT. When the "set /p" option became available in NT, "choice" was no longer necessary and therefore discontinued after Windows 98. The batch file Manfred posted and I commented in the previous message gives you the basics of how to use a choice like menu in modern batch files. There are external utilities that you can use to improve upon this concept. For example, WBAT is pretty handy and is available for free at: http://home.mnet-online.de/horst.muc/ John
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.