开发者

FTP Batch Upload Script

开发者 https://www.devze.com 2023-01-13 23:21 出处:网络
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?

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)):myusername@mydomaninname.com
password:mypassword

2) Th开发者_C百科is 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"?


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"

0

精彩评论

暂无评论...
验证码 换一张
取 消