Search found 5 matches

by gruff999
26 Feb 2014 10:43
Forum: DOS Batch Forum
Topic: Alternative to CHOICE command script - explanation?
Replies: 3
Views: 6275

Re: Alternative to CHOICE command script - explanation?

One small point now I`ve come to use this technique instead of CHOICE. Ideally I`d like a prompt under my menu, something like "Select an option: ", and have the cursor remain on the same line awaiting input, but using the XCOPY trick to capture the users selection. I`ve managed to approxi...
by gruff999
26 Feb 2014 10:31
Forum: DOS Batch Forum
Topic: Prevent typed password appearing on screen - explanation
Replies: 7
Views: 5420

Re: Prevent typed password appearing on screen - explanation

Squashman, thank you. I have both an XP and Windows 7 64-bit machine on my desk - it`s one of the only things that behaves differently, so far. I appreciate DosTips is mainly about XP (I assume it still is?). Others that have caught me out are: SET /P doesn`t support leading spaces in the prompt und...
by gruff999
26 Feb 2014 05:00
Forum: DOS Batch Forum
Topic: Prevent typed password appearing on screen - explanation
Replies: 7
Views: 5420

Prevent typed password appearing on screen - explanation

I found this code on alt.msdos.batch.nt many years ago. I can see what it`s doing in simple 'mechanical' terms but can someone give me a fuller explanation of what "in.com" is, why it works, and the code that creates it? It seems to temporarily create a file that captures console input up ...
by gruff999
26 Feb 2014 04:44
Forum: DOS Batch Forum
Topic: Alternative to CHOICE command script - explanation?
Replies: 3
Views: 6275

Re: Alternative to CHOICE command script - explanation?

Thank you jeb, I don`t know why I didn`t figure that out myself during testing. I`ll try harder next time.
by gruff999
25 Feb 2014 13:14
Forum: DOS Batch Forum
Topic: Alternative to CHOICE command script - explanation?
Replies: 3
Views: 6275

Alternative to CHOICE command script - explanation?

Hi all, As a long-time user of the CHOICE command I was impressed to find the XCOPY alternative on your forum: for /F "delims=" %%L in ('xcopy /L /w "%~f0" "%~f0" 2^>NUL') do ( if not defined key set "key=%%L" ) (It works nicely in Vista 32-bit BTW) When I tri...