Author | Topic: FTP change directory on FTP server | |
---|---|---|
Georg S. Lorrig | FTP change directory on FTP server on Sat, 13 Jul 2002 10:40:26 +0200 Hello, I can't find a way to change the directory on the FTP server. Is there any way to do this? I have to reach ftp.myhost.com/myuser Kind regards, Georg | |
Robert Haley | Re: FTP change directory on FTP server on Sat, 13 Jul 2002 20:49:22 -0400 Greetings, From the ftp (root) after logon, try: CD myuser [Enter] HTH, Bob "Georg S. Lorrig" <georg@lorrig.DONTSPAMME.com> wrote in message news:VA.000000b6.00f9bf1e@lorrig.dontspamme.com... > Hello, > > I can't find a way to change the directory on the FTP server. Is there > any way to do this? > > I have to reach ftp.myhost.com/myuser > > Kind regards, > > Georg > | |
Georg S. Lorrig | Re: FTP change directory on FTP server on Sun, 14 Jul 2002 20:22:49 +0200 Hi, Bob - you're right, if I ask the wrong question, I get the wrong answer. So please let me correct my question: How can I change the directory on a FTP server when using ASInet? Kind regards, Georg | |
Andreas Gehrs-Pahl | Re: FTP change directory on FTP server on Sun, 14 Jul 2002 23:37:59 +0200 Georg, >How can I change the directory on a FTP server when using ASInet? As ASINet does not support any kind of commands besides "get()", "put()", and "delete()", you can't change the FTP directory with ASINet -- but you do not need to change it either. If you want to "get()", "put()", or "delete()" a file, you always need to use the complete path in the filename. As there is no (documented) way to access the ASINet FTP Socket(s) directly, there does not seem to be a way to do any enhancements or sub-classing of the ASINet "FTPClient()", short of writing your own from scratch. This is the most ridiculous and useless design I have ever seen. And even though everybody who has ever tried to use the ASINet FTP client for anything else but simple file transfer -- where you need to know already the file structure on the FTP server to be able to use it -- has complained about this, ASTAG has never changed anything (besides some minor bug fixes). If you need more functionality, you probably need to use a third party product, like "FTP4W32" (which is freeware), or Marshall Software's "FCE4XB" (which is shareware and costs $105 to register). Unless ASTAG adds more features to the ASINet "FTPClient()" or at least opens it up for user modification, its usefulness will always be extremely limited. -- Andreas --- --- Andreas Gehrs-Pahl E-Mail: GPahl@CharterMI.net 415 Gute Street or: schnars@ais.org Owosso, MI 48867-4410 or: Andreas@Aerospace-History.net Tel: (989) 723-9927 Web Site: http://www.Aerospace-History.net --- --- | |
Frans Vermeulen | Re: FTP change directory on FTP server on Mon, 15 Jul 2002 10:31:18 +0200 Andreas, > This is the most ridiculous and useless design I have ever seen. And even > though everybody who has ever tried to use the ASINet FTP client for anything > else but simple file transfer -- where you need to know already the file > structure on the FTP server to be able to use it -- has complained about > this, ASTAG has never changed anything (besides some minor bug fixes). > > If you need more functionality, you probably need to use a third party > product, like "FTP4W32" (which is freeware), or Marshall Software's "FCE4XB" > (which is shareware and costs $105 to register). You can also try the win-API's -FtpFindFirstFileA, and -FtpGetNextFileA from WinINet.Dll. You will also need the API's: -InternetOpenA -InternetCloseHandle -InternetConnectA -InternetGetLastResponseInfoA -FtpGetCurrentDirectoryA -FtpSetCurrentDirectoryA -FtpGetFileSize -FtpOpenFileA -FtpGetFile -FtpCallBack -FtpCallBackStatus It's not an afternoon job, but it's doable. I have done so, it works, but I would not dare to say it's past alpha-stage.... Anyway, now I have access to prof-subscription, I have ASINet. Since ASINet intends to give FTP-Access, I do agree, it is ASTAG's job to complete the functionality of the FtpClient-class. Regards, Frans Vermeulen | |
Thomas Braun | Re: FTP change directory on FTP server on Mon, 15 Jul 2002 11:05:33 +0200 Hi Frans (et al), > Anyway, now I have access to prof-subscription, I have ASINet. > Since ASINet intends to give FTP-Access, I do agree, it is ASTAG's > job to complete the functionality of the FtpClient-class. IMO, based on RFC1123 http://www.cis.ohio-state.edu/cgi-bin/rfc/rfc1123.html#sec-4 shouldn't it be possible to build all neccesary FTP functionality with the ASINET Socket*() functions? Thomas Braun | |
Robert Haley | Re: FTP change directory on FTP server on Fri, 19 Jul 2002 20:42:50 -0400 Hi Georg, re: using ASInet, I haven't a clue. Although, the following link has good info., re: FTP and Win32 API calls, etc. : http://www.vb2themax.com/HtmlDoc.asp?Table=Articles&ID=520&Page=1 - as DLLCALL and BAP are a powerful combination, maybe the link will help. I hope it is useful to you. Regards, Bob "Georg S. Lorrig" <georg@lorrig.DONTSPAMME.com> wrote in message news:VA.000000b7.019d4e84@lorrig.dontspamme.com... > Hi, Bob - > > you're right, if I ask the wrong question, I get the wrong answer. > > So please let me correct my question: > > How can I change the directory on a FTP server when using ASInet? > > Kind regards, > > Georg > | |
Georg S. Lorrig | Re: FTP change directory on FTP server on Sat, 20 Jul 2002 06:38:47 +0200 Bob, looks interesting. I will give it a try. Thank you, Georg |