[Usermenu] Powershell Script with $(ListOfSelectedFullNames)

This is a place for users to discuss Altap Salamander. Please feel free to ask, answer questions, and express your opinion. Please do not post problems, bug reports or feature requests here.
ThomasL
Posts: 2
Joined: 10 May 2017, 13:17

[Usermenu] Powershell Script with $(ListOfSelectedFullNames)

Postby ThomasL » 10 May 2017, 13:32

Hello,

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.

User avatar
tukanos
Posts: 208
Joined: 21 Dec 2005, 19:14

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

Postby tukanos » 22 May 2017, 09:55

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.)

ThomasL
Posts: 2
Joined: 10 May 2017, 13:17

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

Postby ThomasL » 22 May 2017, 10:31

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.


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest