Newsgroups: alt.msdos.batch.nt
From: Clay Calvert <ccalv...@WanGuru.com>
Date: Wed, 07 Nov 2001 18:42:07 -0500
Local: Wed, Nov 7 2001 6:42 pm
Subject: Re: Getting User Input From a Script
Frank: Walter Zackery did the same in August 99, but good job figuring it out http://home7.inet.tele.dk/batfiles/main/ntscript.htm Thanks By the way, has anyone seen this technique for a simple SLEEP routine ping -n 10 127.0.0.1>nul Replace the "10" with number of seconds you want, but add one to it. Here is why it works; PING, by default, waits one second for each What's funny is that the "-n" parameter can be set up to 2^32, which Thanks again, On Wed, 07 Nov 2001 21:45:16 GMT, "Frank" <vmivbkr...@ryfqyrhenumkktks.com> wrote: Clay Calvert >I just came up with a procedure for getting user input that I don't think >I've seen before, but it's so simple that it must be in use somewhere. The >procedure uses the commands VOL and LABEL, the first to get the label of >the current drive and to restore it later, and the second to get user >input. Input is terminated by pressing [ENTER]. Here's the simplest form: >:::::::::::::::::::::::::::::::::::::::::::::::::: >At this point the variable %Input% contains any input. One side effect of > Echo Enter your name (or CTRL-Z to cancel): >This procedure changes and restores the label of the current drive so if >:::::::::::::::::::::::::::::::::::::::::::::::::: >Frank Replace "W" with "L" in email. You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||