我想实现一个简单的确认/提示框,可以使用Windows XP / Vista的批处理脚本,通过CLI命令来调用。

在标准的警告框似乎要阻止这意味着整个批处理脚本将在警报窗口呼叫的时间,这是不是我想要的停下来。

如果它需要被编码,请提供的示例或文档。语言可以是任何可编译为之间没有需要虚拟机。

有帮助吗?

解决方案

start MessageBox.vbs

...其中MessageBox.vbs包含MsgBox函数的调用。

其他提示

可以使用msg工具:

Send a message to a user.

MSG {username | sessionname | sessionid | @filename | *}
    [/SERVER:servername] [/TIME:seconds] [/V] [/W] [message]

  username            Identifies the specified username.
  sessionname         The name of the session.
  sessionid           The ID of the session.
  @filename           Identifies a file containing a list of usernames,
                      sessionnames, and sessionids to send the message to.
  *                   Send message to all sessions on specified server.
  /SERVER:servername  server to contact (default is current).
  /TIME:seconds       Time delay to wait for receiver to acknowledge msg.
  /V                  Display information about actions being performed.
  /W                  Wait for response from user, useful with /V.
  message             Message to send.  If none specified, prompts for it
                      or reads from stdin.

在呼叫

msg * Some text

不会阻塞。它也有必要时设定的时间量后再次关闭该消息框的漂亮能力。

在一个侧面说明,但是,你真的不应该使用这些东西。 Monologs(就像恰好一个OK按钮消息框)具有0%的信息的效率(参见杰夫·拉斯金:人道接口第4-3:接口效率的测定氮杂拉斯金:独白框和透明消息 氮杂拉斯金:知道何时停止设计,定量 )。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top