Problems with command line and quoted || parameters

Things you’d like to miss in the future...
Post Reply
Horst
Posts: 1085
Joined: 24 Jan 2021 12:27
Location: Germany

Problems with command line and quoted || parameters

Post by Horst »

I start XY with command line parameters
filepath1||filepath2
If one of this pathes are containing spaces they are quoted by the invoking program.
All is fine when XY is already running at this time,
the files are selected in the dual panes of XY.
When XY is not running and makes a fresh start-up its not correctly parsing the same parameters
and doesn't go into that 2 dirs or only on one side.
So I guess the parameter parsing is different when done from the already running XY
compared to the fresh start-up code.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69

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

Re: Problems with command line and quoted || parameters

Post by jupe »

You need to quote the whole command, not individually, e.g

Xyplorer.exe "c:\path||d:\otherpath"

Horst
Posts: 1085
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Problems with command line and quoted || parameters

Post by Horst »

jupe wrote: 12 Mar 2021 19:43 You need to quote the whole command, not individually, e.g

Xyplorer.exe "c:\path||d:\otherpath"
I'll try but I have the invoking program not fully under control.
Some time I get in YX such a screen
Screenshot - 12.03.2021 , 19_56_49.png
Screenshot - 12.03.2021 , 19_56_49.png (9.03 KiB) Viewed 323 times
After pressing F7 its corrected
Screenshot - 12.03.2021 , 19_57_28.png
Screenshot - 12.03.2021 , 19_57_28.png (24.68 KiB) Viewed 323 times
But this may be a timing problem as it doesn't always occur
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69

Post Reply