如何创建一个批处理脚本弹出消息? [英] How can you create pop up messages in a batch script?

查看:354
本文介绍了如何创建一个批处理脚本弹出消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要知道如何在批处理脚本的弹出消息,而不使用VBScript或KiXtart或任何其他外部脚本/编程语言。
我有零线索这个......即使没有起点。
我知道 NET SEND 但是Messenger服务在我目前的环境中禁用的。

I need to know how to make popup messages in batch scripts without using VBScript or KiXtart or any other external scripting/programming language. I have zero clue about this... had no starting point even. I am aware of NET SEND but the Messenger service is disabled in my current environment.

推荐答案

对于LittleBobbyTable的答案 - NET SEND无法在Vista或Windows 7的工作,它已取代MSG.EXE

With regard to LittleBobbyTable's answer - NET SEND does not work on Vista or Windows 7. It has been replaced by MSG.EXE

有是,在所有的Windows版本的作品粗的解决方案 - 粗弹出消息可以通过启动关闭一旦一个键一个新的cmd.exe窗口中发送的pressed

There is a crude solution that works on all versions of Windows - A crude popup message can be sent by STARTing a new cmd.exe window that closes once a key is pressed.

start "" cmd /c "echo Hello world!&echo(&pause"

如果你希望你的脚本暂停,直到消息框被驳回,那么你可以添加/ WAIT选项。

If you want your script to pause until the message box is dismissed, then you can add the /WAIT option.

start "" /wait cmd /c "echo Hello world!&echo(&pause"

这篇关于如何创建一个批处理脚本弹出消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆