Topic "Connecting to FTP"

Author Message
roz007

Guest


Hi,

I am trying to connect to an FTP site to download and upload files using a script i can schedule... i have the following script however it keeps prompting me for a username even though i have supplied it in the script. Can anyone point out where i'm going wrong??

I run the following in command prompt

C:\Program Files (x86)\WinSCP>winscp.exe /console /script=TestFTPPragma.txt


# Automatically abort script on errors
option batch on
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Connect using a password
open ftp://user:password@ftp.pragmaworld.net
# Change remote directory
cd /Level1/Level2/Level3
# Force binary mode transfer
option transfer binary
# Download file to the local directory c:\
get P* c:\users\name\Documents\FTP Testing
# Disconnect
close
# Exit WinSCP
exit

This is the output i get..

"prompting for credentials"
"Username:"
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
Are there any special characters in your username or password?
What version of WinSCP are you using?
_________________
Martin Prikryl
Guest




Hi,

Thanks for your reply,

I am using version 4.3.6 and the username and password are alfa numeric...

Thanks
Rosalyn.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
Please post a full log file showing the problem.

To generate log file, enable logging, log in to your server and do the operation and only the operation that causes the error. 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 may email it to me. You will find my address (if you log in) in my forum profile. Please include link back to this topic in your email. Also note in this topic that you have emailed the log.
_________________
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