::iterate 10000 times
@echo off
color 02
chcp 65001
mode 30,8
cls
set /a i=5
:pwrod
set "psCommand=powershell -Command "$pword = read-host '请输入密码' -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
cls
set /a i-=1
if %password% equ 123 goto :start
if %i% neq 0 msg %username% /time:1 "密码错误,还可以输入%i%次"
if %i% equ 0 goto :exit
if %password% neq 123 goto :pwrod
:start
set /a num=0
:loop
cls
if not exist E: (echo E:请插入M1)^
else if exist E:\*.mp3 (
echo E:删除MP3中...
del E:\*.mp3
set /a num+=1
echo %date% %time% E:删除M1