中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-07 17:57
48,041 topics / 350,128 posts / today 3 new / 48,252 members
DOS批处理 & 脚本技术(批处理室) » What is this batch segment for?
Printable Version  652 / 3
Floor1 5548646 Posted 2008-03-07 20:41
初级用户 Posts 28 Credits 81
set a=☆☆☆☆☆☆☆☆☆☆
set b=★
set c=
set d=
set e=123456789abcde

:b
for /l %%a in (0,1,9) do (
set /a f=%random%%%14+1
set/p=!a:~%%a,1!<nul&set/p=%b%<nul
color 0!e:~%f%,1!
set/p=%c%<nul
if %%a equ 9 (set/p=%d%<nul&for /l %%a in (9,-1,1) do (set/p=!a:~-%%a!!<nul&set/p=%b%<nul&set/p=%d%<nul))
)
goto b

What does set/p=!a:~%%a,1! mean?
Floor2 abcd Posted 2008-03-07 20:43
银牌会员 Posts 739 Credits 1,436
set/p=!a:~%%a,1!<nul
This is the whole thing.

This batch file is just for displaying a piece of text.
Floor3 5548646 Posted 2008-03-07 20:44
初级用户 Posts 28 Credits 81
I still don't quite understand. Then what does the part I cut out do?
Floor4 abcd Posted 2008-03-07 20:51
银牌会员 Posts 739 Credits 1,436
Displays the variable a=☆☆☆☆☆☆☆☆☆☆ one by one

the five-pointed star in the middle
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023