Root Folder download

Advertisement

lascrams
Joined:
Posts:
1
Location:
Las Vegas

Root Folder download

Hi,

I've been reviewing different topics on your forum, but I'm stuck on something. I'm working on a script (example below) and trying to download files from the root folder of an FTP host.

I have some log files I can share if needed. Right now, I'm just not sure which command I should be using to download from the root folder. I started looking through the documentation, but I couldn't find the answer.
open sftp://[email protected]/ -hostkey="ssh-rsa 2048 SHA256:fgrhrtytytyu56487" -privatekey="C:\downloads\test\PrivateKey_PuTTy.ppk"
 
 '/' ^
  "ls" ^
  "get *.* C:\downloads\test\clientA\""" ^
 
# Disconnect
close
# Exit WinSCP
exit
I would really appreciate any help with this part. Thank you!

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum