中国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-10-12 13:54
47,815 topics / 349,922 posts / today 0 new / 48,285 members
其它操作系统综合讨论区 » Problems with Windows command symbols
Printable Version  27,207 / 126
Floor61 shaqiu Posted 2007-04-09 03:14
初级用户 Posts 15 Credits 27
That's amazing. Learn from this comrade.
Floor62 aojian12hen Posted 2007-04-09 03:46
新手上路 Posts 4 Credits 8 From 哈尔滨
Thanks for sharing.. Learned a lot..
Floor63 mtiankong Posted 2007-04-11 09:35
初级用户 Posts 38 Credits 70
Floor64 ymbbmq Posted 2007-04-11 12:04
新手上路 Posts 2 Credits 4
You're welcome!
Floor65 waitingcd Posted 2007-04-11 22:51
初级用户 Posts 37 Credits 75
Learning
Floor66 jashonx Posted 2007-04-24 09:07
初级用户 Posts 21 Credits 44
This is worth taking a look, it's a good thing, top! Firmly top!
Floor67 minmin888 Posted 2007-05-08 14:07
初级用户 Posts 62 Credits 127
Good stuff, collect it!
Floor68 minmin888 Posted 2007-05-08 14:07
初级用户 Posts 62 Credits 127
Good stuff, save it!
Floor69 wentaowen Posted 2007-05-10 14:59
初级用户 Posts 17 Credits 38
I've received it all, thank you.
Floor70 qzwqzw Posted 2007-05-27 16:53
银牌会员 Posts 636 Credits 2,343
Suggest to reorder according to the keyboard order

Make a few more corrections

@ Hide the echo of the command
Change to "Hide the echo of the command line", and the echo of the command should be hidden by sentences like >nul 2>nul, etc.

%
A single % followed by one digit from 0-9 indicates referencing the command line parameter;
Used in for to indicate referencing the loop variable;
Two consecutive %s mean to be converted into one % during execution

Should be changed to

Two separate %s containing a string indicate referencing the environment variable with this string as the name;
Two consecutive %s mean to be converted into one % during preprocessing;
Before the in clause of the for statement, a single % (command line) or two consecutive %s (batch) followed by a character (can be letters, numbers, and some specific characters) indicate specifying a loop or traversal index variable;
In the for statement, use the same string as the index variable specified before in to indicate referencing this index variable;
In the batch, a single % followed by one digit from 0-9 indicates referencing the current command line parameter when the batch is executed;
In other cases, % will be removed (batch) or retained (command line)

^
Cancel the escape character, that is, close the escape function of all escape characters.
Should be changed to
Cancel the escape function of specific characters, such as & | > < ! ", etc., but not including %
Because the definition of escape characters is relatively vague, and whether % is an escape character or not is open to discussion

In addition, consider adding handle duplication
>& Write the output of one handle to the input of another handle.
<& Read input from one handle and write it to the output of another handle.
Floor71 lxmxn Posted 2007-05-27 17:02
版主 Posts 4,938 Credits 11,386
Once again, thank you, Brother qzwqzw, for your attention and suggestions on this post. I will sort it out again and put it in the Batch Processing Room later.
Floor72 rechard Posted 2007-05-28 10:56
新手上路 Posts 9 Credits 18
All received. It's rare to have such a comprehensive introduction to symbols.
Floor73 withsiyu Posted 2007-05-28 15:27
新手上路 Posts 1 Credits 2
Floor74 qjykll Posted 2007-06-09 10:49
新手上路 Posts 4 Credits 8
Floor75 xuxinxiangxue Posted 2007-06-11 10:39
初级用户 Posts 14 Credits 31 From 福建福州
Good stuff,受益匪浅啊,发现自己知道得太少啦!! Top......
Prev  1 … 2 3 4 5 6 7 8 … 9  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023