中国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-08 20:14
47,811 topics / 349,895 posts / today 0 new / 48,253 members
DOS批处理 & 脚本技术(批处理室) » Question: Why are there four % signs here? Can someone explain it?
Printable Version  726 / 1
Floor1 wujingyi Posted 2008-05-28 19:38
初级用户 Posts 46 Credits 47
The batch file code is as follows:
@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
set /a na=%random%%%5+1 & start !na!.txt

Question: why are there four % signs here? I can understand the first two, but not the ones after that!! Can someone explain it?
Floor2 bat-zw Posted 2008-05-28 20:43
金牌会员 Posts 1,276 Credits 3,105
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023