need to copy files from local directory to ftp

Advertisement

mnaveen
Joined:
Posts:
12
Location:
India

need to copy files from local directory to ftp

i m trying to copy in local directory to ftp directories using sychronize command
"D:\Program Files\WinSCP\winscp.com" /log="D:\eCP\winscp_log\test\winscp.log" /command ^
    "option batch abort" ^"open ftps://xxxxxxxxxxx%%2Fsupport@xxxxxx.com:%Password%@xxxxxxxxxxx.sharefileftp.com/BILLING/TEST" ^
"synchronize remote D:\Citrix ftps://xxxxxxxxxxx%%2Fsupport@xxxxxx.com:%Password%@xxxxxxxxxxx.sharefileftp.com/BILLING/TEST"  ^
    "exit"
but remote directory is not listing, please help me to fix this

Reply with quote E-mail

Advertisement

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

Re: need to copy files from local directory to ftp

The synchronize command takes a remote path only. Not a URL.
https://winscp.net/eng/docs/scriptcommand_synchronize
You are giving the URL to the open command already.

You also need to indent the line:
https://winscp.net/eng/docs/faq_batch_file#newline_escaping

    "synchronize remote D:\Citrix /BILLING/TEST"  ^

If this does not help, please post a session log file.

Reply with quote

mnaveen
Joined:
Posts:
12
Location:
India

get command falinign the script

"synchronize local E:\expEDIum /temp_TM ^
> 2020-12-15 19:49:09.481 Script: synchronize local E:\expEDIum /temp_TM ^
< 2020-12-15 19:49:09.481 Script: Too many parameters for command 'synchronize'.

Reply with quote E-mail

Advertisement

mnaveen

How to specify speed limit and resume tranfer options for put and get commands

I have large volume of data to tranfer to FTP, can you please help me to specifying speed limits and resume options.

Reply with quote E-mail

mnaveen
Joined:
Posts:
12
Location:
India

i am copying files from ftp using get comamnd but tranfer aborted

    "option batch abort" ^
    "open ftps://*****@itechws.com:%Password%@*****.sharefileftp.com -hostkey="******"" ^
    "get /ECC/* E:\ECC\" ^
< 2020-12-15 22:12:02.058 Copying files from remote side failed.
< 2020-12-15 22:12:02.058 Connection closed; transfer aborted.
what should to resume transfer and to speedup the downloads?

Reply with quote E-mail

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

Re: i am copying files from ftp using get comamnd but tranfer aborted

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, use /log=C:\path\to\winscp.log command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

Advertisement

You can post new topics in this forum