I'm trying to run the following pscp.exe line and I keep getting failure and the list of options from pscp.exe: (I've swapped in content for host, username and password but left some special characters that are actually supposed to be in the fields):

pscp -v -l [email protected] -pw abcDEF@12(345%XWZ MYFILE.zip server.host.org:foldername

How do I cope with the < @ . ( and % > in the username and password? I've tried \ escape and I get the same issue all the way through.

Any Thoughts?

1

Best Answer


The solution is that to escape a % in this particular instance, you use %%.