且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Windows脚本中获取用户输入(通过对话窗口)?

更新时间:2023-01-29 22:40:31

在命令提示符下,您可以使用 StdIn

At the command prompt, you can use StdIn:

Wscript.StdOut.Write "Enter a number: "
strNumber = Wscript.StdIn.ReadLine

本文非常全面地介绍了在Windows Scripting中获取用户输入的不同方式。这有点老,但仍然有帮助。

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.