FTP from Command Prompt

  • Thread starter Thread starter Matthew
  • Start date Start date
M

Matthew

I have created a .bat file containing the following text:

ftp -s:download.bat

download.bat has the following text:

open ftp.business.earthlink.net
username
password
cd www/_private
get order_catalog_form_results.csv
dir
rename order_catalog_form_results.csv 01.csv

My question is, can I combine these into one file? Much neater that way, if
you know what I mean.

Matthew
 
The only problem with that is I will run this daily. Each day has a
different date. Therefore, I would have to go into my .bat file and change
the file name daily.

If I really have to do that, is there a way to do it in the running of the
program?

I have tried "get order_catalog_form_results.csv". That should make it
prompt me for the file name to re name it to. However, it just keeps going
to the next command.

Matthew
 
Back
Top