I'll start with a light rain first, heavy rain or storm need the efforts of everyone. Going to eat first:
The content of test.txt is (temporarily unable to process|<>^):
[ Last edited by namejm on 2006-11-3 at 06:04 AM ]
@echo off
mode con cols=80
color 02
for /f %%i in (test.txt) do set str_char=%%i
set str_blank=
setlocal enabledelayedexpansion
:loop
:: Get the character at a random position
set /a num_char=1%random:~-1%%random:~0,1%-100
set char=!str_char:~-%num_char%,1!
:: Set a random length of spaces
set /a num_blank=1%random:~-1%%random:~0,1%-100
set blank=!str_blank:~0,%num_blank%!
echo.%blank%%char%
goto loop
The content of test.txt is (temporarily unable to process|<>^):
1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ~`!@#%&*(){}_+-=\"'?.,/
[ Last edited by namejm on 2006-11-3 at 06:04 AM ]
Recent Ratings for This Post
( 1 in total)
Click for details
| Rater | Score | Time |
|---|---|---|
| redtek | +2 | 2006-11-03 05:52 |
尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。
考虑问题复杂化,解决问题简洁化。

DigestI