Event-driven multi-thread scheme for Batch files

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Message
Author
einstein1969
Expert
Posts: 941
Joined: 15 Jun 2012 13:16
Location: Italy, Rome

Re: Event-driven multi-thread scheme for Batch files

#16 Post by einstein1969 » 20 May 2023 11:12

@aacini

What is the "2>&1 1>&3" trick?

dbenham
Expert
Posts: 2461
Joined: 12 Feb 2011 21:02
Location: United States (east coast)

Re: Event-driven multi-thread scheme for Batch files

#17 Post by dbenham » 20 May 2023 12:15

That swaps stderr and stdout, so stdout messages go to 2, and stderr messages go to 1

See https://stackoverflow.com/a/12274145/1012053 for more information

Post Reply