[Invalid] /feed argument with pipes doesn't work

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

[Invalid] /feed argument with pipes doesn't work

Post by highend »

...

Tip: You can "pipe" a value instead of quoting it. This can be useful when unpredictable quotes (that might be returned from variables) make predictable parsing impossible, or simply to make a string more readable. For example, this is the same Command Line Switch, first quoted then piped:

/feed="::text '"R:\a b c"';" (this would not work; parser cannot handle the ambiguous quotes)

/feed=|::text '"R:\a b c"';| (this does work)

Of course, you must be sure that no pipes can come up inside the value.
Doesn't work on either Windows 7 or Windows 10 with the current beta.
1.png
To see the attached files, you need to log into the forum.
One of my scripts helped you out? Please donate via Paypal

jupe
Posts: 3570
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: /feed argument with pipes doesn't work

Post by jupe »

You don't have an exe path in your screenshot, also pipes need escaping when executing it from cmd.

FYI works fine for me.

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: /feed argument with pipes doesn't work

Post by highend »

Oh, yeah, bad screenshot (took several)...
Edit: Replaced the bad with a good one in the first post

Ofc it's the same with a real path including the xyplorer.exe

But you are right, the pipes need to be escaped when using a command prompt

XYplorer.exe /feed=^|::text '"R:\a b c"';^|
or
"D:\Tools\XYplorer\XYplorer.exe" /feed=^|::text '"R:\a b c"';^|

Thanks!

@Don
Maybe you should add a call from a dos prompt with escaped pipes to the help file?
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 67270
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: [Invalid] /feed argument with pipes doesn't work

Post by admin »

Ok.

Post Reply