中国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-09-13 23:08
47,812 topics / 349,916 posts / today 0 new / 48,268 members
论坛回收站 » How do I understand this script
Printable Version  1,671 / 0
Floor1 chen8919043 Posted 2010-06-18 16:59
初级用户 Posts 21 Credits 20
@echo off
set a=^set /p=■%b%^<nul^&ping/n 0 127.1^>nul^&

echo ┌——————————————————————————————————————┐
set/p= <nul&%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%
echo 100%%
echo └——————————————————————————————————————┘


set a=^set /p=■%b%^<nul this is assigning set /p=■ to a, what is the role of the %b% variable here, and why is nul used here to input empty

ping/n 0 127.1^>nul^& does this act as a delay, and what does the final ^& do here, and why can't it loop output without adding this ■

set/p= <nul&%a% if nul is not added here, the output result will be set /p■■■■■■■■.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023