![]() |
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-29 21:00 |
47,813 topics / 349,918 posts / today 0 new / 48,278 members |
| DOS批处理 & 脚本技术(批处理室) » [Original] COLOR TIME Color Time Screen Saver |
| Printable Version 11,761 / 47 |
| Floor16 amao | Posted 2007-01-29 03:27 |
| 中级用户 Posts 152 Credits 316 | |
|
The processing has reached such a level, really an outstanding person! Take it down and savor it slowly
|
|
| Floor17 doscc | Posted 2007-01-29 14:31 |
| 中级用户 Posts 93 Credits 256 From 广东 | |
|
The effect of removing call is the same.
The role of call is sometimes very big. @echo off set a=1 echo %a% call :aa a echo %a% goto :EOF :aa call set %1=2 goto :EOF |
|
| Floor18 qzwqzw | Posted 2007-01-29 15:01 |
| 银牌会员 Posts 636 Credits 2,343 | |
|
The first sentence call is the job content
The second sentence call is an unnecessary addition set %1=2 And call set %1=2 The results are not different In the following example call is useful [ Last edited by qzwqzw on 2007-1-29 at 02:03 AM ] |
|
| Floor19 qjbm | Posted 2007-01-29 15:18 |
| 初级用户 Posts 44 Credits 125 | |
|
Please clarify your request. Are you asking for a translation of this Chinese text into English as per the given requirements? If so, here is the translation:
请问 qzwqzw : 1.--------------------------- call set %1=%%%1%% 4 5 6 Before the code is tested and run, how to determine how many % symbols to use. 2.--------------------------- call set %1=%%%1%% 4 5 6 is equivalent to set %1=%a% 4 5 6 Is there a necessity for call set. [ Last edited by qjbm on 2007-1-29 at 02:23 AM ] |
|
| Floor20 bbq123bbq | Posted 2007-01-29 15:19 |
| 初级用户 Posts 77 Credits 197 | |
|
Wow~~~~~Pretty impressive, though I didn't understand it.... Sweat~~
|
|
| Floor21 doscc | Posted 2007-01-29 15:22 |
| 中级用户 Posts 93 Credits 256 From 广东 | |
|
Add another pair of %%
call set %1=%%%1%% 4 5 6 ↓ call set a=%%a%% 4 5 6 ↓ set a=%a% 4 5 6 |
|
| Floor22 PPdos | Posted 2007-01-29 15:51 |
| 高级用户 Posts 268 Credits 783 | |
@echo off The understanding is good. To a certain extent, the role of call is to substitute variable delay |
|
| Floor23 qzwqzw | Posted 2007-01-30 00:41 |
| 银牌会员 Posts 636 Credits 2,343 | |
|
---qjbm-----------
Q1: The general principle is that you use as many % as the number of times you need to parse. For example, call set %1=%%%1%% 4 5 6 Before the call is executed, the command line has been processed into a form like this: call set a=%a% 4 5 6 After the call is executed and before the set is executed, the command line becomes like this: set a=1 2 3 4 5 6 Q2: When the variable name used in the aa segment is uncertain or dynamically changing, call set is useful. ---PPdos---------------------------------- Understood well. But it is more appropriate to understand it the other way around - The role of variable delay l is to a certain extent to replace call. Because the usage of call appeared much earlier. Before there was cmd. In DOS, call was used to implement the pass-by-reference feature similar to C language. |
|
| Floor24 flykiss8 | Posted 2007-01-30 05:22 |
| 初级用户 Posts 18 Credits 36 | |
|
Great, collect it and study it slowly~~~~~~
|
|
| Floor25 tao0610 | Posted 2007-01-30 12:06 |
| 高级用户 Posts 218 Credits 579 | |
|
The creativity is quite good. Just there are too many unnecessary sentences. Simplify it.
|
|
| Floor26 scriptor | Posted 2007-01-30 12:50 |
| 银牌会员 Posts 555 Credits 1,187 | |
|
I'm really佩服 you guys.
Haha... |
|
| Floor27 scriptor | Posted 2007-01-30 12:51 |
| 银牌会员 Posts 555 Credits 1,187 | |
|
Haven't been here to post for a long time.
Saw a lot of good things today. Studying intensively right now. *_* |
|
| Floor28 hngaoshou | Posted 2007-01-31 00:22 |
| 社区乞丐 Posts 77 Credits -16 | |
| Floor29 bob1989 | Posted 2007-01-31 11:00 |
| 中级用户 Posts 144 Credits 322 | |
|
The handwriting of the numbers is not very nice.
|
|
| Floor30 hngaoshou | Posted 2007-02-01 00:53 |
| 社区乞丐 Posts 77 Credits -16 | |
|
Top.............
But I always feel something is missing |
|
| Prev 1 2 3 4 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |