批处理html颜色,什么是Windows批处理相当于HTML的输入类型=“密码”?

看看这个

@echo off & setlocal enableextensions

:: Build a Visual Basic Script

set vbs_=%temp%\tmp$$$.vbs

set skip=

findstr "'%skip%VBS" "%~f0" > "%vbs_%"

::

:: Prompting without lineFeed as in Item #15

echo.|set /p="Password: "

:: Run the script with Microsoft Windows Script Host Version 5.6

for /f "tokens=* delims=" %%a in ('cscript //nologo "%vbs_%"') do set MyPass1=%%a

::

::echo.

echo.|set /p="Retype : "

for /f "tokens=* delims=" %%a in ('cscript //nologo "%vbs_%"') do set MyPass2=%%a

::

:: Clean up

for %%f in ("%vbs_%") do if exist %%f del %%f

::

:: Demonstrate the result

echo.

if "%MyPass1%"=="%MyPass2%" (

echo The entered password was %MyPass1%

) else (

echo No match)

endlocal & goto :EOF

'

'The Visual Basic Script

Set WshPass = WScript.CreateObject("ScriptPW.Password") 'VBS

Password=WshPass.GetPassWord() 'VBS

WScript.Echo PassWord 'VBS

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值