中国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-08-27 00:37
47,812 topics / 349,912 posts / today 2 new / 48,264 members
其它操作系统综合讨论区 » Strongly Requesting a Consolidated Thread on Logic
Printable Version  917 / 1
Floor1 peterdocter Posted 2007-03-31 01:06
中级用户 Posts 95 Credits 379
What I know about cmd:
Arithmetic:
SET /A expression
The /A command switch specifies that the string to the right of the equal sign is a numeric expression to be evaluated. This expression
evaluator is very simple and supports the following operations in descending order of precedence:
() - grouping
* / % - arithmetic operators
+ - - arithmetic operators
<< >> - logical shift
- bitwise "and"
^ - bitwise "xor"
| - bitwise "or"
= *= /= %= += -= - assignment
&= ^= |= <<= >>=
, - expression separator
If you use any logical or remainder operator, you need to put the expression string
in quotes.
What does grouping mean? How is it used?
Also, how do you do rounding? And things like square roots...
Logical operators:
== equal sign
&& and
|| or
??? what about not equal?
set files=test.txt
!files==test.txt del /q test.txt and it still deleted it *_*
Isn't it like other scripts, with != and !== or <>
Do you have to use the English abbreviations of the symbols themselves?
If all this were made into a unified thread, it would be convenient for beginners like us...
thx!
Floor2 estar Posted 2007-03-31 03:53
中级用户 Posts 103 Credits 346
Search for algorithms
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023