Running a PowerShell ps1 script - external program on completion - Help?

Windows specific questions, problems.
Post Reply
groupers

Running a PowerShell ps1 script - external program on completion - Help?

Post by groupers »

Someone just post an example please, I've tried four different ways and none of them work. I can run batch scripts fine but when trying to run a .ps1 file or run powershell.exe it doesn't work.
groupers

Re: Running a PowerShell ps1 script - external program on completion - Help?

Post by groupers »

I figured it out. I had to encapsulate the entire string in double quotes, then escape the double quotes around the path variable with backslashes.

"Power shell d:\move.ps1 \"%F\" %L"

I tried many different things and this is the only way that worked.
Post Reply