Topic "Problem with script ftp.domain"

Author Message
joolzhaines
[View user's profile]

Joined: 2012-08-26
Posts: 1
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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
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")
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License