| Dart Home | PowerTCP FTP for ActiveX | Custom Development | Reply | PowerTCP FTP for ActiveX Topics | Forums |
| Author | Forum: PowerTCP FTP for ActiveX Topic: Downloading Data sets from Mainframe |
| dexmac From: rolling meadows, IL USA Posts: 2 Member Since: 03/01/04 |
posted March 1, 2004 1:35 PM I am having some trouble downloading using the FTP ActiveX control using VB6. I cannot recreate the commands I am able to use in a DOS FTP Shell session. For instance, the "LS" command. when I try the following: ftpWires.Command "LS 'FATEST.*'" , ResultList I simply get: Error - 11101 : 500 unknown command LS of course this exact command (including the single quotes) works fine in the shell session. The Listing method doesn't work as it is expecting either UNIX or DOS file names, and it is datasets. If I issue the Get or rcv Commands in the SHell session I am able to download the files, but I cannot issue those same commands through the control. Please let me know what I am missing with your control. Dexter |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted March 1, 2004 1:39 PM "LS" is not an FTP command. It's a command used by ftp.exe to implement "LIST". With our control, you would use the .List method |
| dexmac From: rolling meadows, IL USA Posts: 2 Member Since: 03/01/04 |
posted March 1, 2004 6:11 PM I think I see what you are pointing out to a newbie like myself. "LS" is not supported by the remote server, it is just a shortcut in the FTP.EXE app. OK fine, but I cannot use the .List method as it returns a stream which is not UNIX or DOS filenames. I Tried using Command to Send "LIST 'FATEST.*' " with the still no result. Can you please explain a little more? Dex |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted March 1, 2004 10:28 PM You can't use the Command method do a List because List uses a data connection, which has to be set up by us. That connection is set up when you call List. If the Listing is not Unix or DOS, then use the Text property of the Listing to get the raw data returned from the server which you can then parse yourself. |
| Reply | PowerTCP FTP for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|