2

I have to move a complete folder from one source to another destination.
I have tried mget * and xcopy, but neither works. Please suggest some snippets.

I'm using psftp to connect the SFTP server.

My code is:

cd Remote path
lcd Local path
mget *
bye

I have also tried mget* and mget *.*.

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
suresh
  • 303
  • 2
  • 4
  • 14

1 Answers1

10
  1. Use mget -r folder

  2. If your paths include spaces, do not forget to surround path to double quotes

  3. I assume you connect using command line arguments, otherwise you are missing open command.

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992