2009-05-09 12 views
3

CLIでWindows XP/Vistaバッチスクリプトを使用して呼び出すことのできる簡単な確認/アラートボックスを実現したい。Windows:非ブロッキングアラート/確認ウィンドウを表示する方法は?

標準のアラートボックスがブロックされていると思われます。これは、アラートウィンドウコール時にバッチスクリプト全体が停止することを意味します。

コード化する必要がある場合は、例またはドキュメントを提供してください。言語は、間に仮想マシンを必要とせずにコンパイル可能なものにすることができます。

答えて

4
start MessageBox.vbs 

... MessageBox.vbsには、MsgBox関数の呼び出しが含まれています。

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 

がブロックされないコール:

+0

うわー、今は簡単でした:)ありがとう! –

4

あなたがmsgツールを使用することができます。また、必要に応じて設定された時間が経過した後にメッセージボックスを再び閉じるという優れた機能も備えています。

ただし、実際には使用しないでください。 (正確にOKボタンを持つメッセージボックスなど)Monologs 0%の情報の効率を有する(参照、ジェフ・ラスキン:動物愛護インタフェースセクション4-3:インターフェース効率又はAza Raskin: Monolog Boxes and Transparent Messages又はAza Raskin: Know When to Stop Designing, Quantitatively測定)。

関連する問題