📜  带有批处理的错误框 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:25.010000             🧑  作者: Mango

代码示例1
::::::::::::::::::::::::::::::::::::::::::::::::
@rem source: https://www.instructables.com/Awesome-Batch-Codes/
@if (true == false) @end /*!
@echo off
mshta "about:

" %*
goto :EOF */

alert("Hello, world!");

:::::::::::::::::::::::::::::::::::::::::::::::::::

you can call it in a file like this

@echo off

cls

echo enter a password

set /p pass=

call msg

:msg

@if (true == false) @end /*!
@echo off
mshta "about:

" %*
goto :EOF */
alert("Thank you %username%!");