0

I have this file:

C:\Documents and Settings\tc\My Documents\Downloads\ee_server_wizard.zip

and I am trying to upload it to server via pscp like this:

pscp C:\Documents and Settings\tc\My Documents\Downloads\ee_server_wizard.zip root@mydomain.com:/var/www/

But it has problem with the spaces. Which is the right syntax?

Thanks in advance

PS: I could just move it to a path with no spaces but I want to know the syntax.

chchrist
  • 18,854
  • 11
  • 48
  • 82

1 Answers1

3

You simply put quotes around it. (That has nothing to do with pscp, but is a Windows and Unix-like shell thing; remember that the escape rules are different though.)

pscp "a b" foo@bar:
jørgensen
  • 10,149
  • 2
  • 20
  • 27