Problem with script ftp.domain

Advertisement

joolzhaines
Joined:
Posts:
1

Problem with script ftp.domain

Hi,

I am having issues getting my script to work, my ftp only allows ftp.domain not ftp://, when I run this script it does not work

Regards


# winscp.exe /console /script=example.txt
# Automatically abort script on errors
option batch abort
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Connect using a password
open ftp.user:password@homebakedfood.co.uk
# Change remote directory
cd /backups
# Force binary mode transfer
option transfer binary
# Download file to the local
# get *.* C:\Manual Backups\Home Backed Food
# Disconnect
close
# Exit WinSCP
exit

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Problem with script ftp.domain

Sorry, I do not understand. What do you mean by "my ftp only allows ftp.domain not ftp://"?
Do you want to connect using FTP protocol (note that WinSCP defaults to SFTP).
You need to use
open ftp://ftp.user:password@homebakedfood.co.uk/
(supposing your username is indeed "ftp.user")

Reply with quote

Advertisement

You can post new topics in this forum