views:

24

answers:

1

Two questions pertaining to a FTP Batch upload script I'm working on.

1) My log-in script is failing even though I know my credentials are valid. Any suggestions about this code snippet?

open ftp.mydomainname.com
user (ftp.mydomainname.com:(none)):[email protected]
password:mypassword

2) This is just a general question about FTP scripts. If I don't specify a "lcd" will the script assume when I say "put" that it's supposed to get the file from the directory the script lives in, or must I specify the directory with a "lcd"?

A: 

Answered the log-in piece of the question here: stackoverflow.com/questions/936108/

I solved the "lcd" piece of the question like so

put "c:\correct\file\path\here\filename.txt"

s15199d