bat 提示窗口,带换行

bat 提示窗口

各种窗口样式

mshta vbscript:msgbox("内容1",1,"标题1")(window.close)
mshta vbscript:msgbox("内容2",2,"标题2")(window.close)
mshta vbscript:msgbox("内容3",3,"标题3")(window.close)
mshta vbscript:msgbox("内容4",4,"标题4")(window.close)
mshta vbscript:msgbox("内容5",5,"标题5")(window.close)
mshta vbscript:msgbox("内容6",6,"标题6")(window.close)

这里只是一些提示窗口的样式,至于提示窗口的不同选择不同执行需要另外查看帮助

换行例子:

set msg="this is message.\nnew line"
mshta vbscript:msgbox(Replace(%msg%,"\n",vbCrLf),6,"标题6")(window.close)

注意:vbscript:后面语法之间不要加任何空格,不然会报错

 

posted @ 2019-06-26 17:57  ibingshan  阅读(2436)  评论(0编辑  收藏  举报