Board logo

标题: [其他] bat怎么弹出可交互的提示框 [打印本页]

作者: xuzifan20090820    时间: 2022-8-18 12:44     标题: bat怎么弹出可交互的提示框

bat怎么弹出可交互的提示框啊,新手在线等大佬回复
作者: Batcher    时间: 2022-8-18 18:25

回复 1# xuzifan20090820


请发个截图看看是什么样的提示框

如果需要上传截图,可以找个图床,例如:
http://bbs.bathome.net/thread-60985-1-1.html
作者: xuzifan20090820    时间: 2022-8-18 21:46

https://image.baidu.com/search/detail?ct=503316480&z=&tn=baiduimagedetail&ipn=d&word=%E7%94%B5%E8%84%91%E6%8F%90%E7%A4%BA%E6%A1%86&step_word=&ie=utf-8&in=&cl=2&lm=-1&st=-1&hd=&latest=&copyright=&cs=3126997723,335140314&os=3893556051,421681662&simid=3126997723,335140314&pn=1&rn=1&di=7117150749552803841&ln=1905&fr=&fmq=1660830343275_R&ic=&s=undefined&se=&sme=&tab=0&width=&height=&face=undefined&is=0,0&istype=2&ist=&jit=&bdtype=0&spn=0&pi=0&gsm=0&objurl=https%3A%2F%2Fgimg2.baidu.com%2Fimage_search%2Fsrc%3Dhttp%253A%252F%252Fgss0.baidu.com%252F9fo3dSag_xI4khGko9WTAnF6hhy%252Fzhidao%252Fpic%252Fitem%252Fa686c9177f3e6709fb6ff70c3fc79f3df9dc55d1.jpg%26refer%3Dhttp%253A%252F%252Fgss0.baidu.com%26app%3D2002%26size%3Df9999%2C10000%26q%3Da80%26n%3D0%26g%3D0n%26fmt%3Dauto%3Fsec%3D1663422341%26t%3De4cd5fd60bcf17567a040e07d6d82aea&rpstart=0&rpnum=0&adpicid=0&nojc=undefined&dyTabStr=MCwzLDIsNiw0LDEsNSw3LDgsOQ%3D%3D

最好是可交互的
作者: flashercs    时间: 2022-8-19 10:03

  1. @echo off
  2. echo WSH.Echo MsgBox("信息内容", vbYesNoCancel, "标题")>"%temp%\a.vbs"
  3. for /f "delims=" %%A in ('cscript "%temp%\a.vbs" //nologo') do (
  4.     echo %%A
  5.     if %%A equ 6 (
  6.         echo 是
  7.     ) else if %%A equ 7 (
  8.         echo 否
  9.     ) else if %%A equ 2 (
  10.         echo 取消
  11.     )
  12. )
  13. pause
复制代码
保存为ANSI编码




欢迎光临 批处理之家 (http://bbs.bathome.net/) Powered by Discuz! 7.2