Sending Pipe character to BAT file from button

I am fresh out of ideas. I have been struggling to get a | in a bat file from a button. DO wants to parse it as a internal command and will not literally write the pipe to generated my .bat file.

Such as:

Echo >>makemp4.bat @bepipe.exe --script "import(^{filepath|noext}.avs^)" | neroaacenc_sse2.exe -if - -of "{filepath|noext}.audio.mp4" -ignorelength -q 120

It just truncates the line after the |.

Anyone have an idea how I can 'escape' this character?

Much appreciate any push you could lend.

Regards.

Use ^| instead of |

By the way, it isn't Opus parsing the pipe, it's DOS. You'll see the same thing if you try it at a command prompt without Opus being involved.

alas! That's Purr_fect nudel! Thanks for the spot.

OK,
Well, I don't fully understand what's going on here,
but I'd like to learn.
I know the @ character turns echo off.
And to be quite honest I don't understand the use of the ^ character here at all.

The one thing I do know is that I've never had trouble using a pipe | in a button.
I use one quite frequently although it's now very obsolete.
At the time I needed a simple method to rename a Minolta Raw image to the form yyyy-mm-dd_hh-mm-ss based on exif data.
I used Exif Utils piped to a homemade command line program to accomplish this.
At the time Exif Utils could almost do it, but needed another rename to accomplish this.
Lucky for me at the time, I discovered that Exif Utils kept a Cout or something in their code.
Whatever it was, it was a line that made possible a simple pipe to my crude program.

Regards,
David

Ohh, I see it a little better now.
It's really that the original problem in part was to import the character | to a text or batch file.
I can confirm that :

Echo >> D:\test.txt |errors.

But,Echo >> D:\test.txt ^|works !

I didn't know it at all.

You would only see this problem in MS-DOS Batch-type buttons since it is DOS, not Opus, which is interpreting the | and needs it escaping with a ^ when you want a literal |.

Sorry I forgot to mention that Zippo. Leo is correct that I am running the button as a Ms-Dos function rather than a Standard Dopus one....

@echo = echo off > Therefore tidying my command console window. :slight_smile:

This was one part of a complex .bat.