Saved Bookmarks
| 1. |
Solve : set /p with a timer ?? |
|
Answer» How can i do this? , I understand using choice.com can do this but its not what im looking for Set /P will wait until the return key is pressed - what did you want it to do ? That very long row of question marks looks really stupid.he is Free in the way of expression Quote from: dnthns87 on May 11, 2010, 10:45:21 AM Sorry, What i ment to ask was how can i use set /p to create a pause with a timer like choice.com has is there anyway of doing this or possibly a third party program that does this ? http://www.westmesatech.com/editv.html choose.exe, COMES in MS-DOS, Win32 and Win64 flavours. Code: [Select]C:\>choose64 /? Choose64 2.0 - (C) 2006-2009 by Bill Stewart ([emailprotected]) Allows selection of a choice from a LIST of choices. Usage: Choose64 [-c choices] [-d x] [-l] [-n] [-p prompt] [-q] [-s] [-t x,n] -c choices Specifies valid choices (default is 'YN'). -d x Choose 'x' if Enter is pressed. -l Use line input mode (must press Enter after MAKING a choice). -n Do not display the list of choices. -p prompt Prompt the user with 'prompt' (enclose in quotes if it has spaces). -q Do not display the choice that was selected (ignored with -l). -s Choices are case sensitive. -t x,n Choose 'x' automatically if no choice made within 'n' seconds. Without -c, the default choices are 'YN' (or 'yn' with -s). The program's exit code will be the position of the choice in the list. If Ctrl-C is pressed, the exit code will be 255.Quote from: on May 11, 2010, 11:40:32 AM , what did that post contribute to answering the OP's question? Thanks, But let me be more clear on what i need.. choose.exe isnt what im looking for because its to similar to choice.com , sleep.exe isnt what i need because im not looking to just create a pause, Im looking for set /p with a timeout , for example: :TOP set an=&echo Whats your name?&set /p /TIME:XX an=-&IF NOT"%an%"=="%an%" (Goto loop) ELSE Goto TOP Quote from: dnthns87 on May 11, 2010, 12:47:46 PM :TOPThere is no time switch, also, you have the set syntax wrong. :top cls echo What's your name? Set /p name= If not "%name%"=="something else" (goto loop) else (goto top) Just saying, the following will always do the else command, so I don't know why you put it in your code: IF NOT"%an%"=="%an%" (Goto loop) ELSE Goto TOP i didnt really look at it, i just WROTE it quickly.. i understand that there is no time switch but set /p /time:xx is exactly what im looking for so a way to do that or a third party program that could do that would be awesomeQuote from: dnthns87 on May 11, 2010, 01:09:42 PM i didnt really look at it, i just wrote it quickly.. i understand that there is no time switch but set /p /time:xx is exactly what im looking for so a way to do that or a third party program that could do that would be awesome Look again on that page I linked to, at the features of Editvar. In particular, the timeout. |
|