im-datestamp-selection.ps1 "C:\Users\bernie\Photo Staging\tmp\DSC_1032 - Copy.JPG", "C:\Users\bernie\Photo Staging\tmp\DSC_0859 - Copy.JPG"
But when I select the same two files then run the script from XYPlorer, it fails, because it cannot find the file, even though I've specified quoted and comma separated like:
Code: Select all
$var_file = quote(<get SelectedItemsPathNames '", "'>);
runret("%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe C:\Users\bernie\PowerShell\im-datestamp-selection.ps1 $var_file");
"C:\Users\bernie\Photo Staging\tmp\DSC_1032 - Copy.JPG", "C:\Users\bernie\Photo Staging\tmp\DSC_0859 - Copy.JPG"
I don't understand why I am getting this error when running this from XYPlorer, when the parameters are quoted:
Call: get-item : Cannot find path 'C:\Users\Bernie\Photo'
XYplorer Beta Club