Link to home
Start Free TrialLog in
Avatar of vitaminC_ny
vitaminC_ny

asked on

create ftp batch file

I need to create a ftp batch file on Windows 2003
I need to connect to linux server by IP w/ username & password
and copy one file to the local windows server
The linux server is not setup for sftp.

Please advise thanks
Avatar of leemae85
leemae85
Flag of United States of America image

Is this a process you need to repeat, so you desire to create a batch file to get a specific file from the Linux box and put it in a specific place on the windows box?
Avatar of vitaminC_ny
vitaminC_ny

ASKER

That is correct.

Try something like this (not tested):

cd \path\where\to\put\file
(
echo open host passwd
echo cd /path/to/the/file
echo get the_file
echo bye
)|ftp

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of leemae85
leemae85
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
that did the trick thanks