🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.os.windows-10
Article #1430

What does |> do?

#1430
From: Johann 'Myrkraverk' Oskarsson
Date: Fri, 27 Nov 2026 05:06
32 lines
2135 bytes
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!
-- 
Johann | email: invalid -> com | http://www.myrkraverk.com/blog/
I'm not from the Internet, I just work there. | via Easynews.com
https://bsky.app/profile/myrkraverk.bsky.social | for ( ;; ) _:;
Federated at https://fed.brid.gy/bsky/myrkraverk.bsky.social
Technical Details
Message-ID: <Sd8OS.7158$B3F4.2353@fx15.ams4>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer05.iad!feed-me.highwinds-media.com!news.highwinds-media.com!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!fx15.ams4.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer05.iad!feed-me.highwinds-media.com!news.highwinds-media.com!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!fx15.ams4.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Newsgroups: alt.comp.os.windows-11,alt.comp.os.windows-10
Content-Language: en-US
From: Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid>
Subject: What does |> do?
Organization: Watcom Pro Ltd.
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 32
Message-ID: <Sd8OS.7158$B3F4.2353@fx15.ams4>
X-Complaints-To: abuse@easynews.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Fri, 27 Nov 2026 13:06:56 +0800
X-Received-Bytes: 1909