
批處理隨機排序中typetemyky^|sort這段話怎么理解
請教'typetem.yky ^| sort'這段話怎么理解如何預留 其中的 排序 比如 我想 要 “某某” 排在第四nclick="copycode($('code0'));">復制代碼
- @echo off&color 3e&mode con cols=55
- setlocal enabledelayedexpansion
- (for /L %%s in (1,1,10)do (
- call :geths
- set !hs!=%%s&echo.!hs!
- ))>tem.yky
- for /f %%r in ('typetem.yky ^| sort')do (
- set w=
- set/p w=
- echo 第 個抽的是: !%%r!)
- :end
- del tem.yky
- echo/&echo 抽簽完畢! 按任意鍵退出...
- pause>nul&exit
- :geths
- set hs=%random%
- if defined %hs% goto geths

