【发布时间】:2017-06-20 14:32:10
【问题描述】:
@echo off
set "psCommand=powershell -Command "$pword = read-host 'Enter Password' -AsSecureString ; ^
$BSTR=[System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($pword); ^
[System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR)""
for /f "usebackq delims=" %%p in (`%psCommand%`) do set password=%%p
echo %password%
【问题讨论】:
-
这还不清楚,至少可以这么说。
-
我什至无法猜出提问者想要做什么......
标签: batch-file passwords hide mask