Connecting to FTP

Advertisement

roz007
Guest

Connecting to FTP

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:"

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,227
Location:
Prague, Czechia

Re: Connecting to FTP

Are there any special characters in your username or password?
What version of WinSCP are you using?
_________________
Martin Prikryl

Reply with quote

Guest

Re: Connecting to FTP

Hi,

Thanks for your reply,

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

Thanks
Rosalyn.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,227
Location:
Prague, Czechia

Re: Connecting to FTP

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

Reply with quote

Advertisement

You can post new topics in this forum