
CODE: [Copy to clipboard]@echo off
setlocal enabledelayedexpansion
for %%a in (*.*) do (
set /a n+=1
set "_!n!=%%a"
)
:agn
cls
set /a "num=%random%%%%n%+1"
echo.!_%num%!
echo.&pause&goto :agn
| Quote: | |
|
| Quote: | |
|
CODE: [Copy to clipboard]@echo off&setlocal EnableDelayedExpansion
set "Play=c:\Program Files\Windows Media Player\wmplayer.exe"
for /r "c:\music" %%i in (*.mp3) do (
set /a n+=1
set "tempuser!n!=%%i"
)
set/a "num=%random%%%%n%+1"
start /min "" "%Play%" "!tempuser%num%!"
CODE: [Copy to clipboard]:@echo off
setlocal enabledelayedexpansion
for %%a in (*.*) do (
set /a n+=1
set "tempuser!n!=%%a"
echo 现在 "tempuser!n!" 对应的文件是 "%%a"
)
:agn
set /a "num=%random%%%%n%+1"
echo.!tempuser%num%!
echo.&pause&goto :agn
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |