Get files .csv from zip folder

Advertisement

amybi77
Guest

Get files .csv from zip folder

Hi All
I am using CLI , the issue i am facing is the .csv files are in a zip folder, here is my code. Looked online for 2 days and couldn't find a way to deal with the zip files
please need help
option batch on
option confirm off
open sftp://un:pwd@server/ -hostkey="ssh-rsa 1024 xxxxxxxxxxx"
cd /users/dev
option transfer binary
get -preservetime *.csv c:\
 
close
exit

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,378
Location:
Prague, Czechia

Re: Get files .csv from zip folder

Technically, there's nothing like a ZIP folder. If you mean that your CSV files are in a ZIP archive, then you need to download the archive and extract it after your WinSCP download script finishes.

Reply with quote

Advertisement

You can post new topics in this forum