Search found 3 matches

by walid2mi
08 Oct 2012 09:11
Forum: DOS Batch Forum
Topic: New behavior with SET /A?
Replies: 6
Views: 5082

Re: New behavior with SET /A?

hi, you can also us this syntax for multi assignement: CMD I> set /A a=b=c=d=e=20 or for count words: CMD I> set W=sample test string hello world CMD I> set/A X=1+%W: =,X+=1+% 5 or for using without enable delayed expansion CMD I> set T=10 set S=20 set /a N= T * S or inject value in another var: CMD...
by walid2mi
01 Dec 2011 02:36
Forum: DOS Batch Forum
Topic: redirection >&1 >&2 >&3 >&4
Replies: 6
Views: 7117

Re: redirection >&1 >&2 >&3 >&4

*google translation*

Code: Select all

>3 and >&3


is used in persistent redirects

their use can extend the ability of command scripts:

1- creation of a special flow to capture all console output

2- have a more flexible management of errors and output STDOUT

..etc