Unexpected Command Line Parameter

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
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: 14658
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