Environment: XP Below is the result when I run
C:\>set t=abc & echo %t%
%t%
C:\>set t=abc & echo %t%
abc
The first time I ran it, the value of the variable was not displayed. I tried to write the two sentences separately and save them as a bat file, and I could get the result normally. But I don't know why the one connected by & can't get the expected result, so that when I run Brother Wunaikai's signature, I get such a result.
C:\>%ComSpec% /cset,=^G何奈无── 。何奈可无是原,事奈无做人奈无^G&for,/l,%i,in,(22,-1,0)do,@call,set/p= %,:~%i,1%<nul&ping/n 1 127.1>nul
%,:~22,1% %,:~21,1% %,:~20,1% %,:~19,1% %,:~18,1% %,:~17,1% %,:~16,1% %,:~15,1%
%,:~14,1% %,:~13,1% %,:~12,1% %,:~11,1% %,:~10,1% %,:~9,1% %,:~8,1% %,:~7,1% %,
:~6,1% %,:~5,1% %,:~4,1% %,:~3,1% %,:~2,1% %,:~1,1% %,:~0,1%
Is there any solution?
Also, there is one point I don't understand above, why does he use call?
[ Last edited by 0401 on 2005-12-2 at 09:29 ]
C:\>set t=abc & echo %t%
%t%
C:\>set t=abc & echo %t%
abc
The first time I ran it, the value of the variable was not displayed. I tried to write the two sentences separately and save them as a bat file, and I could get the result normally. But I don't know why the one connected by & can't get the expected result, so that when I run Brother Wunaikai's signature, I get such a result.
C:\>%ComSpec% /cset,=^G何奈无── 。何奈可无是原,事奈无做人奈无^G&for,/l,%i,in,(22,-1,0)do,@call,set/p= %,:~%i,1%<nul&ping/n 1 127.1>nul
%,:~22,1% %,:~21,1% %,:~20,1% %,:~19,1% %,:~18,1% %,:~17,1% %,:~16,1% %,:~15,1%
%,:~14,1% %,:~13,1% %,:~12,1% %,:~11,1% %,:~10,1% %,:~9,1% %,:~8,1% %,:~7,1% %,
:~6,1% %,:~5,1% %,:~4,1% %,:~3,1% %,:~2,1% %,:~1,1% %,:~0,1%
Is there any solution?
Also, there is one point I don't understand above, why does he use call?
[ Last edited by 0401 on 2005-12-2 at 09:29 ]
