返回列表 发帖
本帖最后由 batman 于 2011-6-29 21:00 编辑
@echo off&setlocal enabledelayedexpansion
if not exist articles md articles
for %%a in (*.txt) do set "_!random!_%%~na=%%a"
(for /f "tokens=2 delims==" %%a in ('set _') do (
  set /a n+=1
  if !n! leq 8 (
    setlocal
    for /f "usebackq delims=" %%b in ("%%a") do set /a m+=1&set ".!m!=%%b"
    set /a a=!random!%%!m!+1
    for %%b in (!a!) do echo !.%%b!
    endlocal
  )
))>articles\new.txtCOPY
2

评分人数

***共同提高***

TOP

返回列表