Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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")
joolzhaines

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