I'd like to create a simple search script that runs from the CMD prompt. It needs to asks for user input first e.g. "what to search".
How can I prompt the user for input (in cmd), or open a input dialog (in any standard scripting Windows language).
I'd like to create a simple search script that runs from the CMD prompt. It needs to asks for user input first e.g. "what to search".
How can I prompt the user for input (in cmd), or open a input dialog (in any standard scripting Windows language).
you can use user input dialog via
InputBox
function in vbscriptAt the command prompt, you can use
StdIn
:This article is a pretty comprehensive look at different ways of getting user input in Windows Scripting. It's a bit old, but still helpful.