Short answer: You can use this value in $SelMultiple in your script.
I was looking for a way to pass the selected filename to the script.
After going through some samples in the github repo above I found that the selected file is $SelMultiple
My script is a simple one like this
#CMD
pdfsplit.bat $SelMultiple 1 2
And after selecting the file and clicking the script icon, choosing the right script i get the confirmation dialog like the attached picture showing that the $SelMultiple variable is expanded as expected and shown before running it.
Clicking OK will execute the command as displayed and it works as expected, the filename was passed to my pdfsplit.bat properly.
So you can use this value in $SelMultiple in your script
I could not find a list of built-in variables to be used in OneCommander scripting. Having a list would be helpful, for example after some trial and error i found that $Sel
is for single selection but cannot be used when $SelMultiple is also used in the script.
I found some variables somewhere in other posts in this group too but doesn't work %SELECTED_FILES%? OC_SELECTED_FILES?
they are not in the windows system environment variables as i tried this, but nothing related to onecommander is listed.
#CMD
set > env_var.txt
REM and this one returned empty
echo %SELECTED_FILES% > temp_files.txt
I hope this helps.
If someone knows an official list, please post the link, it would help a lot.