calling the directory…
netmeeting ils
pinging…
What does the |> do in command lines?
Johan,
What does the |> do in command lines?
The "|" redirects the output of the previous command (echo) to the next one, the ">" redirect the output of the command it belongs to (in your case the next one, findstr),
Yes, the "<" and ">" may be used /before/ the command you want to redirect the input for and/or output of.
Regards,
Rudy Wieser
It looks like a .bat file or something :-)
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!
nul bbbccc
It doesn't have to perfect, just something that'll help me remember com-
plex ffmpeg lines.
Best wishes, and happy batch files!
On 2026/11/27 5:6:56, Johann 'Myrkraverk' Oskarsson wrote:
[]
It doesn't have to perfect, just something that'll help me remember com-
plex ffmpeg lines.
Best wishes, and happy batch files!
I was trying to write a batch file incorporating yt-dlp, and I asked one
of the AIs - either ChatGPT or the Google one, I can't remember - some
fine point.
It said something like "Would you like me to create the batch file for
you?".
I said yes, fully intending to examine and tweak the code.
But I was very impressed with what it created: not only did the code do
what I wanted, but it was to a standard that pleased me: nicely
indented, with comments - not too many, not too few.
Twenty years ago I might have done battle myself with the complexities
of yt-dlp and ffmpeg. (Well, I'd have had to, as AIbots weren't around.
But I _think_ I might have anyway.) But now, (a) at my age (b) since AI
_is_ around, I'm happy to let it! It knew special characters - what I
wanted didn't involve |>, but I learnt "^" for breaking a line to make
it more reasonable, which I hadn't known about.
It even, once I'd got what I wanted, asked "would you like me to modify
the batch to ...", with sensible suggestions!
The most extreme answer it will give is:
"Why don't you do your own homework ?"
On Fri, 11/27/2026 4:30 PM, J. P. Gilliver wrote:[]
On 2026/11/27 5:6:56, Johann 'Myrkraverk' Oskarsson wrote:
[]
It doesn't have to perfect, just something that'll help me remember com- >>> plex ffmpeg lines.
Best wishes, and happy batch files!
I was trying to write a batch file incorporating yt-dlp, and I asked one
of the AIs - either ChatGPT or the Google one, I can't remember - some
fine point.
It said something like "Would you like me to create the batch file for
you?".
I said yes, fully intending to examine and tweak the code.
But I was very impressed with what it created: not only did the code do
what I wanted, but it was to a standard that pleased me: nicely
indented, with comments - not too many, not too few.
Twenty years ago I might have done battle myself with the complexities
of yt-dlp and ffmpeg. (Well, I'd have had to, as AIbots weren't around.
There are other outcomes possible.[lots of doubtless good stuff snipped.]
data: api.nasa.gov (APOD, NeoWs)
| Sysop: | cequra |
|---|---|
| Location: | Grimsby United Kingdom |
| Users: | 4 |
| Nodes: | 4 (0 / 4) |
| Uptime: | 498852:57:58 |
| Calls: | 197 |
| Files: | 8,821 |
| D/L today: |
29 files (9,432K bytes) |
| Messages: | 39,038 |