Article View: alt.comp.os.windows-11
Article #1357Re: What does |> do?
From: JJ
Date: Fri, 27 Nov 2026 18:04
Date: Fri, 27 Nov 2026 18:04
49 lines
3037 bytes
3037 bytes
On Fri, 27 Nov 2026 13:06:56 +0800, Johann 'Myrkraverk' Oskarsson wrote: > Dear alt.comp.os.windows-11, > alt.comp.os.windows-10, > > What does the |> do in command lines? I don't recall learning that dur- > ing my DOS days. I saw it here, > > > https://stackoverflow.com/questions/15707742/windows-batch-check-if-variable-starts-with-ends-with-and-contains-a-specific-s > > and I was working out how I'd check if an environment variable, really > %1, started with a double quote -- " -- and > > findstr /b /r \" > > seems to do the trick, but the surrounding code is -- escaping me. I > haven't done anything like a mildly complex batch file since the 90s, so > please be patient with me. > > Basically, what I thought I should do, was to check if the incoming %1 > started with ", and then set it without, or set it as foo="%1" if not. > > It doesn't have to perfect, just something that'll help me remember com- > plex ffmpeg lines. > > Best wishes, and happy batch files! In CMD, these special characters are basically command separators, where || and && are conditional command separators: |, &, ||, && So, a command line like below: set |>nul bbb && ccc || ddd It's consist of 4 preceived command lines: aaa >nul bbb ccc ddd < and > redirections can be at start or at end of a command line, or both. Further readings: (long URL warning) Command shell overview <https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-xp/bb490954(v=technet.10)> Using command redirection operators <https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-xp/bb490982(v=technet.10)>
Technical Details
Message-ID:
<5p4fj198n47w$.rl2a4bctfz97$.dlg@40tude.net>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<Sd8OS.7158$B3F4.2353@fx15.ams4>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: JJ <jj4public@gmail.com>
Newsgroups: alt.comp.os.windows-11,alt.comp.os.windows-10
Subject: Re: What does |> do?
Date: Sat, 28 Nov 2026 01:04:28 +0700
Organization: A noiseless patient Spider
Lines: 49
Message-ID: <5p4fj198n47w$.rl2a4bctfz97$.dlg@40tude.net>
References: <Sd8OS.7158$B3F4.2353@fx15.ams4>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 27 Nov 2026 18:04:30 +0000 (UTC)
Injection-Info: dont-email.me;
logging-data="1974314"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18kF8iDatFjQYwHq4dm18PLdSf4f+SmBLw="; posting-host="f5dfd14a325db56ee05fab92822ec1fb"
User-Agent: 40tude_Dialog/2.0.15.84
Cancel-Lock: sha1:XRuevC+pNF7Z16vY+W4fiKuTMXI= sha256:aVoXSdVJ8ia34UTxxrbv+/CpVTrnSz+QP8K0Qs65r3I=
sha1:e4uLY1+lln1xavynn3U4dLgBztA= sha256:C512jtSQJyCrVo0c1MV+w5QTWd7vL8MXi9xYgNlCNqM=
X-Bitcoin: 1LcqwCQBQmhcWfWsVEAeyLchkAY8ZfuMnS
X-Face: \*\`0(1j~VfYC>ebz[&O.]=,Nm\oRM{of,liRO#7Eqi4|!]!(Gs=Akgh{J)605>C9Air?pa d{sSZ09u+A7f<^paR"/NH_#<mE1S"hde\c6PZLUB[t/s5-+Iu5DSc?P0+4%,Hl