收藏: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
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
相关文章推荐
- C++Builder6.0出现[Fatal Error] F1013 Error writing output file的几种解决办法
- listView异步处理图片下载缓存
- 深度解析JSP工作原理
- linux VPS之间网站数据的备份与恢复(网站迁移教程)
- C堆内矩阵实现
- yarn 日志聚集配置
- java spring jdbc配置
- zip的妙用--矩阵行列交换
- umL简介
- test
- 怎么删除svn上已上传的文件
- shen/Frame : Unsupported major.minor version 51.0
- 学习JavaWeb之Servlet——listener
- sql语句随记
- linux下JBOSS安装
- 解决操作系统无法打开.exe可执行文件的方法
- Maven内置隐式变量
- 软件测试 -- 单元测试,集成测试和系统测试的侧重点是什么?
- IOS Table中Cell的重用reuse机制分析
- Maven系列--在项目中的使用