File Transfer through FTP

Hi Guys,

I wanted to transfer files from FTP machine to Linux Machine.

In this, I need to create a batch file that will connect to the Linux Machine and Transfer the files specified as the parameter to the files.

Ex : transferfiles Product Time Geography
Here transferfiles shld contain the script to transfer files Product Time and Geography to the Linux Machine.

How can i achieve this. i am totally unaware of the creating batch files.

Swapna

Batch files are a DOS/Windows thing. This forum focusses mainly on Unix scripting languages, however the principles are similar.

If you search the web for "how to write batch files" you will find many tutorials.

how to write batch files - Google Search

  1. creat file in windows and named walker-ftp.tpl
    open ftp.walkernews.net
    user walker-login-id-here
    walker-login-password-here
    prompt
    mget *.*
    bye

  2. creat file called RunFTP.bat
    ftp -n -s:walker-ftp.tpl

Finally, you can run the batch RunFTP.bat to transfer your files.

Cool! I didn't know windows ftp could do that, I'm definately gonna bookmark this thread :slight_smile:

Doesn't user username password have to be on the same line, or is that a difference between Windows and Unix FTP clients?