> Thanks for all your help, guys. Yes that makes a lot of sense. I didn't > realise CWD only changed directory RELATIVE to the current directory.
Not exactly. CWD change directorie according to what you pass as argument. If you pass an absolute directory, so does it change. If you pass a relative directory, it change accordingly ! As I said in one of my previous messages, when you lon onto a FTP server, you are not in the "root directory", you are in the "home directory" which may or may not be the same as the root directory. Use PWD to know where you are logged in. Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be ----- Original Message ----- From: "rick cusimano" <[EMAIL PROTECTED]> To: <email@example.com> Sent: Wednesday, October 11, 2006 9:15 AM Subject: Re: [twsocket] How to handle a failed CWD with FTPClient... > Thanks for all your help, guys. Yes that makes a lot of sense. I didn't > realise CWD only changed directory RELATIVE to the current directory. > > I've tried adding a '/' to the start of the path, but that didn't work. > I've also tried a '\', but that didn't work either. Whats the easiest way > of changing to the root (or rather, the HOME) directory? I did previously > write a loop where it would CDUP as long as there were a certain number of > '\'s left in the current directory but I scrapped that... > > And thanks again for all your help, this is more support than I've ever > gotten for ANY product I've used.... > > Rick > > > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://www.elists.org/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be