Hi,
Its been a while since I've done straight FTP batch. I'm VERY embarassed to have to ask this question.
I'm writing a batch file. The first part of the batch pulls some files down to my local machine. That part works great.
Now, I'm trying to add (to the latter half of my batch program), an FTP script that FTPs these files to my website.
Here's what I have. Consider the information inside the {} to be implied.
ftp {IP address here} /user:{username} /password:{password}
cd intranet.company.com
ls
close
bye
First off, I can't login without having the CMD shell prompt me for my username and password. I have confirmed all of the information is accurate. The whole point of the batch is so I don't have to supply anything extraneous.
Also, I have tried all of the following in my batch, and I still get prompted
ftp {IP address}
{username}
{password}
cd intranet.company.com
ls
close
bye
And nothing seems to work.
Any help to allow straight logging in. I'm thinking I might have to specify a port, etc.
Also, if I do successfully login, then I want to upload an entire folder (along with its sub-directories) to my FTP'd directory. I've tried mput, but it only moves the files.
Is there a straight statement for FTP that will tell me to "move not only my files, but also the sub-directories"?
Thanks in advance for any help you can provide.
mickeyj2
Its been a while since I've done straight FTP batch. I'm VERY embarassed to have to ask this question.
I'm writing a batch file. The first part of the batch pulls some files down to my local machine. That part works great.
Now, I'm trying to add (to the latter half of my batch program), an FTP script that FTPs these files to my website.
Here's what I have. Consider the information inside the {} to be implied.
ftp {IP address here} /user:{username} /password:{password}
cd intranet.company.com
ls
close
bye
First off, I can't login without having the CMD shell prompt me for my username and password. I have confirmed all of the information is accurate. The whole point of the batch is so I don't have to supply anything extraneous.
Also, I have tried all of the following in my batch, and I still get prompted
ftp {IP address}
{username}
{password}
cd intranet.company.com
ls
close
bye
And nothing seems to work.
Any help to allow straight logging in. I'm thinking I might have to specify a port, etc.
Also, if I do successfully login, then I want to upload an entire folder (along with its sub-directories) to my FTP'd directory. I've tried mput, but it only moves the files.
Is there a straight statement for FTP that will tell me to "move not only my files, but also the sub-directories"?
Thanks in advance for any help you can provide.
mickeyj2