Skip to content

'EXEC' action fails with command line arguments if one or multiple folders are selected along with files #186

@swarup459

Description

@swarup459

Description
Command line arguments are not sent to CLI app if one or multiple folders are selelcted along with files. If only files are selected, then they are sent properly to the application.

To Reproduce

<?xml version="1.0" encoding="utf-8"?>

<root>
    <shell>
        
        <menu name="arguments.debugger.3">
            <actions>
                <property name="selection.multi.separator" value="&quot; &quot;" />
                <property name="source.items" value="&quot;${selection.path}&quot;" />
                <property name="selection.multi.separator" value="${line.separator}" />
                <message title="${source.items}" />
                <exec path="${application.directory}\arguments.debugger.window.exe" arguments="${source.items}" />
                <message title="${source.items}" />
                <property name="source.items" value="" />
            </actions>
        </menu>
    
    </shell>
</root>

If only files are selected, there is no problem in displaying the arguments in 'Argument Debugger' application. Both the 'message' actions are executed also.
But, if one or multiple folders are selected along with files, the 'exec' action simply fails; the arguments are not shown in 'Argument Debugger' application. The 2nd 'message' action is not executed.

Environment

  • OS: Windows 8.1 Enterprise fully updated
  • ShellAnything v0.10.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions