Link to home
Start Free TrialLog in
Avatar of mcs26
mcs26

asked on

MS DOS BATCH FTP File Change Directory

Hi,

I have some code (below) the code copies the first file but not the second file which is in another directory. I used cd.. to go back one directory the cd ilink_constituents which is whre the file I wish to copy is. The DOS screen say invalid command which I think is to do with cd..

Any help would be great thanks

Mark

@echo off
(echo open data.ftse.com
echo user username password
echo cd data
echo cd gilts
echo cd gilts_constituents 
echo mget *BGCO*.csv
echo cd..
echo cd ilink_constituents
echo mget *ILCO*.csv
echo quit
) | ftp -n -i

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of svgmuc
svgmuc
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
Avatar of mcs26
mcs26

ASKER

great thanks!