Page 1 of 1

send multiple files as arguments (‪Nilesoft Shell)

Posted: 20 Jul 2022 09:51
by yusef88
can we send multiple files to xyplorer as arguments
seems difficult https://stackoverflow.com/questions/270 ... m-explorer

my goal is create paper folder form selected files

Code: Select all

"C:\Program Files\XYplorer\XYplorer.exe" "paper:es" /feed=|::wait;goto "paper:es", 1;paperfolder(, RegExReplace(<clp>, '"', ""), , "ns");#250|

Re: send multiple files as arguments

Posted: 20 Jul 2022 11:50
by highend
"C:\Program Files\XYplorer\XYplorer.exe" /feed="::paperfolder('es', <clp>, , 'nls');"

Re: send multiple files as arguments

Posted: 20 Jul 2022 13:46
by Horst
Learned a nice command line :)
It was very easy to make a button in Total Commander which copies all selected files to the clipboard
and start this as paperfolder in XY.

Re: send multiple files as arguments

Posted: 20 Jul 2022 14:16
by yusef88
thank you both for ideas
I did something better, a scripted button using <drop> variable
goto 'paper:es', 1;paperfolder(, "<drop>", , "ns");#250
switch to paper es if exists then drop files.

Re: send multiple files as arguments

Posted: 20 Jul 2022 18:54
by Horst
yusef88 wrote: 20 Jul 2022 14:16 thank you both for ideas
I did something better, a scripted button using <drop> variable
goto 'paper:es', 1;paperfolder(, "<drop>", , "ns");#250
switch to paper es if exists then drop files.
But this requires to hit the button in XY.
Your request was "can we send multiple files to xyplorer as arguments".
The method starting XY with arguments from outside is fully automatic
after some tool or batch has copied the list of files into the clipboard.

Re: send multiple files as arguments

Posted: 27 Jun 2023 02:28
by yusef88
Hello everyone
if anyone uses Nilesoft Shell, and can help write the right syntax

Code: Select all

item(type='file' mode=multiple title='XY' image cmd='XYplorer.exe' args='/user=\"@sel(false, "|")')
https://nilesoft.org/docs/functions/sel
to echo get("CmdLineUser"); in XYplorer