Page 1 of 1

Whats 2>%1

Posted: 31 May 2010 21:18
by Calvogalatra
Hi

Im not sure of the syntaxis but i think it is this way
whats 2>%1 for
also 3>%1
and I just see on the net
2>@1

Thanks
Calvo

Re: Whats 2>%1

Posted: 01 Jun 2010 11:18
by aGerman
Well, > is for redirecting of an output to a file or a device (eg. printer, screen, NUL).
2 is for redirecting the stdErr (error message)
3 is an user defined channel
%1 is the first argument you gave to the batch process
I've never seen 2>@1 because this will create a file named "@1"

But there is another thing you could find somewhere:
2>&1 would bring together stdErr and stdOut to stdOut

Regards
aGerman

Re: Whats 2>%1

Posted: 01 Jun 2010 22:31
by Calvogalatra
Hi aGerman

Thx for replying

Is there any document or page in which i can read more about batch? I would like to start doing some examples.

Calvo

Re: Whats 2>%1

Posted: 02 Jun 2010 11:29
by aGerman
Calvogalatra wrote:Hi aGerman

Thx for replying

Is there any document or page in which i can read more about batch? I would like to start doing some examples.

Calvo

Well, my nickname is not a joke. I could give you some good links to german tutorials, but I think it would be senseless for you :|
But you are on http://www.dostips.com/ and you'll find some excelent examples above.

Regards
aGerman

Re: Whats 2>%1

Posted: 02 Jun 2010 11:57
by jeb
Hi,

aGerman wrote:I could give you some good links to german tutorials, but I think it would be senseless for you :|


but not for me (and some others here) because I'm a German too, but not aGerman :)

Re: Whats 2>%1

Posted: 02 Jun 2010 12:29
by aGerman
:lol: Yeah, jeb ... I'm absolutely certain that you need a batch tutorial :lol:

OK, for you, other Germans an not for aGermans :mrgreen:
a tut collection
a good forum

Regards
a( )German