Page 1 of 1

[Usermenu] Powershell Script with $(ListOfSelectedFullNames)

Posted: 10 May 2017, 13:32
by ThomasL

can anybody tell me which calling syntax I must use in the usermenu that Powershell (4.0) recognizes each passed quoted filename as a script parameter while using $(ListOfSelectedFullNames)? I cannot get it to work.

Re: [Usermenu] Powershell Script with $(ListOfSelectedFullNames)

Posted: 22 May 2017, 09:55
by tukanos
I would gladly help you, but you need to share more information, best with screenshots.

What are you calling? You are calling .ps1 script or batch file which is calling a script? Are you calling as normal user or administrator?

What errror messages you get?

How are you calling it from Altap Salamander? (description and screenshots would be best.)

Re: [Usermenu] Powershell Script with $(ListOfSelectedFullNames)

Posted: 22 May 2017, 10:31
by ThomasL
Thank you for your help but In the meantime I figured it out on my own.
The use of the param() keyword in the script was kind of problematic. If I have it in the script I wasn't able to address each selected filename (path and filename with spaces) as a single parameter. After I left it out I can simply loop through the default $args array and use its elements as (file-)parameters.