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