您的位置:首页 > 其它

收藏:bat常用

2014-02-21 16:55 281 查看
1、生成guid

for %%i in ("0=A" "1=B" "2=C" "3=D" "4=E" "5=F")do set "x1%%~i"

setlocal enabledelayedexpansion

set "guid="

for /l %%i in (1,1,32)do (

set/a "n=!random!&15"

if !n! gtr 9 call set "n=%%x!n!%%"

set "guid=!guid!!n!")

set "guid=%guid:~,8%-%guid:~8,4%-%guid:~12,4%-%guid:~16,4%-%guid:~-12%"

echo %guid%

2、输入的时候不显示密码

@echo off

echo hP1X500P[PZBBBfh#b##fXf-V@`$fPf]f3/f1/5++u5x>in.com

set /p password=Enter password:<nul

for /f "tokens=*" %%i in ('in.com') do set password=%%i

del in.com

echo.

echo The Password is:"%password%"

pause
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: