Windowsの場合:非ブロックアラート/確認ウィンドウを表示するにはどのように?

StackOverflow https://stackoverflow.com/questions/843585

質問

私は、CLIでのWindows XP / Vistaのバッチスクリプトを使用して呼び出すことができ、簡単な確認/警告ボックスを実現したい。

標準警告ボックスは、全体のバッチスクリプトは、私が欲しいものではありません警告ウィンドウの呼び出し時に停止することを意味してブロックしているようです。

それがコード化する必要がある場合は、

、例やドキュメントを供給してください。言語間で仮想マシンを必要とせずにコンパイル可能です何もすることができます。

役に立ちましたか?

解決

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