Anyway, you can pass list of selected files/folders to a program using
%WL button argument (this will be expanded to path to a temporary Unicode filelist). Unfortunately there is no safe way of passing paths to PowerShell command line scripts (paths may contain special characters that may be interpreted by PowerShell itself), only to script files:
Code: Select all
Command: powershell.exe
Parameters: -ExecutionPolicy Bypass -File X:\Path\TouchAll.ps1 "%WL"
And
TouchAll.ps1 may look like this:
Code: Select all
Get-Content $args | % { Write-Host $_; (Get-Item -Force $_).LastWriteTime = Get-Date; };