| Dart Home | PowerTCP FTP for ActiveX | Custom Development | Reply | PowerTCP FTP for ActiveX Topics | Forums |
| Author | Forum: PowerTCP FTP for ActiveX Topic: PowerBuilder 6.5 FTP Tool, Command Method |
| KTCopeland From: Richmond, VA USA Posts: 3 Member Since: 07/10/02 |
posted July 10, 2002 12:37 PM Please Help.... I need to send files to multiple locations (with different flavors of ftp) from a server. The mput method has trouble resolving the directory on some of these so I need to send a "cd pathname" command to handle the issue. The problem is I can't get Powerbuilder to handle the call. Is the problem in using the Any datatype? My client is getting antsy and I'm frustrated beyond belief. If you could send me a sample that it is known to work, it would be greatly appreciated. Thanks, Todd Copeland |
Jon Belanger![]() From: Rome, NY USA Posts: 310 Member Since: 06/10/02 |
posted July 10, 2002 1:45 PM Todd, We would need a way to reproduce the problem from our end. You could use the .Trace method to trace the traffic when doing an mput. If you send us a very simple sample that will reproduce the problem plus the data from the Trace we may be able to fix the problem with the mput command. |
| KTCopeland From: Richmond, VA USA Posts: 3 Member Since: 07/10/02 |
posted July 10, 2002 2:31 PM Thanks for the reply Jon, What I would really like is a couple of lines of code that are known to work in PowerBuilder6.5 Here's what I have now: ANY la_Return ole_ftp.object.timeout=180000 ole_ftp.object.login(gs_Server, gs_User, gs_Password) ole_ftp.object.command("cd ..",la_Return) This code fails every time. I downloaded the objects yesterday so I'm sure I have the most recent version. I have tried other things in the command text like "PWD" or "LS" and these don't work either. What am I missing? |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted July 10, 2002 2:49 PM Hi, There are a couple of things you can try. Setting the Directory Property will change the working directory. Also, you can use the Command Method to send a "CWD path". Hope this helps, -ken |
| KTCopeland From: Richmond, VA USA Posts: 3 Member Since: 07/10/02 |
posted July 10, 2002 3:10 PM Thanks Ken, I have tried using ole_ftp.object.directory="../mydirectory/sample" and this fails also. I think the problem might be that the ftp server for this remote machine doesn't support the CWD command. I opened up an ftp session (using msWindows client) and when I type help I get a list of commands and it is not there. cd is there and when I use it I get a reply saying CWD succeeded. However; when I try to use CWD, I get a message saying that this is an invalid command. To get around this I would like to use the command method exclusively, but I can't make it work for any operation (not just directory navigation). The sample program that came with the tools doesn't have this method in it. Isn't there someone somewhere who has actually used this in PowerBuilder6.5? Please send some sample code for this method if you have it. Thanks, Todd |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted July 10, 2002 4:38 PM Hi Todd, Our resident PB user will be out until next week. However, I have a couple of comments. First, does our sample work ok? Second, are you sure the server does not support CWD? Many customers think their server uses a "cd" command, because this is what is used from the command line, but a "cwd" is what is actually sent to the server when "cd" is entered. Finally, are you able to get the Trace method to work? It may help to see what the control is actually sending and receiving from the server. -ken |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted July 13, 2002 10:25 PM First of all, you can't use the ANY data type, use a string instead and initialize it to "". Secondly, the command would be "CWD ..", but if all you want to do is change the directory, just use the directory property, like we do in the sample. |
| Reply | PowerTCP FTP for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|