Page 1 of 1
[Invalid] /feed argument with pipes doesn't work
Posted: 09 Jun 2021 04:07
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
Re: /feed argument with pipes doesn't work
Posted: 09 Jun 2021 04:42
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.
Re: /feed argument with pipes doesn't work
Posted: 09 Jun 2021 05:35
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?
Re: [Invalid] /feed argument with pipes doesn't work
Posted: 09 Jun 2021 08:33
by admin
Ok.