
| Quote: | |
|
| Quote: | |
|
CODE: [Copy to clipboard][ Last edited by namejm on 2006-11-27 at 10:15 PM ]@echo off
setlocal enabledelayedexpansion
:begin
cls
set str1=abcdefghijklmnopqrstuvwxyz
set str2=0123456789
set /a char=%random%%%26
set /a num=%random%%%10
echo !str1:~%char%,1!!str2:~%num%,1!
pause
goto begin
CODE: [Copy to clipboard]@echo off&setlocal ENABLEDELAYEDEXPANSION
set a=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$()-_=+][~
set /a a_=(%random%+65)%%65
set /a b_=(%random%+65)%%65
set /a c_=(%random%+65)%%65
set /a d_=(%random%+65)%%65
set /a e_=(%random%+65)%%65
set /a f_=(%random%+65)%%65
rename d:\abc\abc.txt !a:~%a_%,1!!a:~%b_%,1!!a:~%c_%,1!!a:~%d_%,1!!a:~%e_%,1!!a:~%f_%,1!.txt
pause
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |