pscp with -p option

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

I'm using a pscp command similar to this:

pscp.exe -p -pw p2Q9na@K user@hostname:/publisher/*.xlsx \destination

This works fine from a command window, but when I run it from a batch file, or
from a SQL Server job, the -p option doesn't work. All files have the current

Does anyone have a solution to this?

Site Timeline