Unexpected Command Line Parameter

Things you’d like to miss in the future...
Forum rules
When reporting a bug, please include the following information: your XYplorer version (e.g., v27.90.0047), your Windows version (e.g., Win 11), and your screen scaling percentage (e.g., 125%). We recommend adding your Windows version and screen scaling percentage to your profile or signature. This will make debugging much easier for us.
Post Reply
shimamiya
Posts: 13
Joined: 29 Jun 2023 12:29

Unexpected Command Line Parameter

Post by shimamiya »

Hello, this is my first post here, so bear with me. :)

Firstly, thank you for this awesome software. I did try it before, but didn't really have the time to go through so many features, but now I'm working my way around things and it is really fabulous.

Ok, so I have created a 'Catalog" and have added a command line entry to launch File Locator Pro, a search utility. By passing the -d parameter I can prefix the path to auto load in the software. Either for a directory or selected files. My command is as follows:

"Q:\Portable-Software\FileLocatorPro\FileLocatorPro.exe" -d <selitem>

For multiple files I also pass:

"Q:\Portable-Software\FileLocatorPro\FileLocatorPro.exe" -d <selitems ;>

It works as it should, but each time I click the link for the software I keep getting a message saying "Unexpected Command Line Parameter". Then the software opens as it should. Am I doing something wrong or is this a bug? Sorry, not sure.

Thank you.
S.

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

Re: Unexpected Command Line Parameter

Post by highend »

Those selected item paths contains space(s)? Quote them...
"<selitems ;>"
One of my scripts helped you out? Please donate via Paypal

shimamiya
Posts: 13
Joined: 29 Jun 2023 12:29

Re: Unexpected Command Line Parameter

Post by shimamiya »

Thank you for the reply. I had tried that. I have sorted it though. With the "Open Selected List Item(s) with Application" you don't need to include the <selitem> var. Once I removed it, the error went away. I guess <selitem> is assumed. :)

For the mulitple files, <selitems ;> is fine, but the option "Open Item" shouldbe used instead. So, all good. :)
Last edited by shimamiya on 29 Jun 2023 18:57, edited 3 times in total.

Post Reply