![]()
[<<]Message[>>] [<<]Author[>>] [<<]Subject[>>] [<<]Thread[>>]
Number : 9446 Date : 2004-12-06 Author : des4212001 Subject : Re: Good Old Choise Command Size(KB) : 2
--- In xxcopy@yahoogroups.com, "John Zeman" wrote: > > --- 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 Yes no Choise in NT Commands was clear. But... I didn't know about "set /P"! And short of starting to read at "A" it would have been a while down to "S". That will fill the bill nicely thank you. I'll get to WBAT (even had that site filed in Favorites under Computer Stuff\Software\DOS\, but then I have a lot of stuff Stuffed here & there). No real excuse, but first I always go out of my way trying to avoid CMD, only to be forced back if I want to get anything done! For instance, I followed xxcopy for 1 1/2 years before trying to actually use it myself, and guess what, it's only several times better than what I was doing previously! Thanks Again: DES
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.