Logical operators (“and”, “or”) in DOS batch
|
You can do
or:
You can do
| |||||||||
|
The MS-DOS
If See also: | ||||
De Morgan's laws allow us to convert disjunctions ("OR") into logical equivalents using only conjunctions ("AND") and negations ("NOT"). This means we can chain disjunctions ("OR") on to one line. This means if name is "Yakko" or "Wakko" or "Dot", then echo "Warner brother or sister".
This is another version of paxdiablo's "OR" example, but the conditions are chained on to one line. (Note that the opposite of
|
'컴퓨터관련' 카테고리의 다른 글
윈도우7과 xp간의 프린터공유...펌 (0) | 2015.08.03 |
---|---|
윈도우10 자동업데이트를 수동으로...펌 (0) | 2015.08.02 |
윈도우10 cortana search box 감추기...펌 (0) | 2015.07.30 |
윈도우10 숨겨진 아이콘 항상보기, always show in taskbar...펌 (0) | 2015.07.30 |
How to Do a Clean Install of Windows 10...펌 (0) | 2015.07.30 |