Board index » delphi » ftp getting err msg
Blackbird Crow Raven
![]() Delphi Developer |
ftp getting err msg2006-06-24 07:50:27 AM delphi166 I'm testing some ftp code locally (not connected to the internet yet at work, so am doing what I can with the laptop I brought in), and when I set up a TIdFTP component with: BoundIP := '127.0.0.1'; { the username and password I use to log on to the laptop } User := 'BlackbirdCrowRaven'; Password := 'HokaHey'; //and then call connect and get: Connect; ChangeDir('Miscellaneous'); Get('CrazyHorse.xml'); I get "550 The system cannot find the file specified" I've tried everything imaginable for the ChangeDir value: ChangeDir('C:\Miscellaneous'); ChangeDir('C:\Miscellaneous\'); ChangeDir('/Miscellaneous/'); ChangeDir('Miscellaneous/'); ChangeDir('Miscellaneous'); ChangeDir('/Miscellaneous'); ChangeDir('\Miscellaneous'); ChangeDir('\Miscellaneous\'); but I always get the same error message. Is ftping illegal using localhost? Does it have to be an "Ftp server" machine for it to work? Or what is my problem? (careful now...) BTW, I copied this code from working code from a former project (except that in that case where it worked, the file was "gotten" from a remote machine, and, of course, the filenames and passwords, etc. were all different). -- Be the first one on your block to read the uproariously hilarious novel "the Zany Time Travels of Warble McGorkle" (Book 2 in a trilogy). Download it here: codecentral.borland.com/item.aspx |