One other way which might be interesting. You can call a powershell script from where you can do pretty much anything, and send the data bach to cmd or do other stuff with something like this.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. In Windows cmd, how do I prompt for user input and use the result in another command? Ask Question. Asked 12 years, 5 months ago.
Active 7 months ago. Viewed 1. Improve this question. Nakilon Didn't any of these answers work? If not, did you find a solution? If you did, it would be helpful if you posted it here as a self-answer. Show 1 more comment. Active Oldest Votes.
Improve this answer. Instantsoup Instantsoup I've tried several different ways, and haven't been able to find a way to do this, outside of writing a little C program to take the input, and assign it to an EnvVar, but that's cheating! LarryF check out stackoverflow. Note the added nicety of the space at the end of "Enter ID: ".
Gives a sweet little space between the prompt and the user answer. Delete the internet? No silly vs Delete the internet? No silly. No need for the quotes. Property 'products' has no initializer and is not definitely assigned in the constructor. Error: EPERM: operation not permitted, rename The term 'ng' is not recognized as the name of a cmdlet, function, script file, or operable program.
Unexpected end of JSON input while parsing near ' There is likely additional logging output above lite server this operation is rejected by user system npm npm ERR!
Collectives on Stack Overflow. Learn more. How to get user input - batch? Ask Question. Asked 7 years, 10 months ago. Active 9 months ago. Viewed 16k times.
Improve this question. Add a comment. Active Oldest Votes. Try adding this. Improve this answer. Matt Williamson Matt Williamson 6, 1 1 gold badge 21 21 silver badges 34 34 bronze badges. John Conde k 97 97 gold badges silver badges bronze badges. You are able to request user input using Batch scripts. Batch script - Prompting for user input using a function. You are able to prompt a user for input using a Batch script function.
Related Posts. January 4th, August 2nd, July 30th, July 29th, July 13th, July 11th, July 10th, July 8th, July 7th, July 5th, This website uses cookies and third party services.
0コメント