China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-08 22:31
中国DOS联盟论坛 » 论坛回收站 » How do I understand this script View 1,525 Replies 0
Original Poster Posted 2010-06-18 16:59 ·  中国 北京 光环新网
初级用户
Credits 20
Posts 21
Joined 2010-05-20 21:00
16-year member
UID 167284
Gender Male
Status Offline
@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■■■■■■■■.
Forum Jump: