| Dart Home | PowerTCP FTP for ActiveX | Custom Development | Reply | PowerTCP FTP for ActiveX Topics | Forums |
| Author | Forum: PowerTCP FTP for ActiveX Topic: Trouble using the Command Method |
| nick_mages nmages@doncarsys.com From: Winnipeg, MB USA Posts: 14 Member Since: 07/05/02 |
posted July 5, 2002 3:00 PM Our application(Powerbuilder 6.5) connects to an ftp server through a firewall and gets our clients mail(not e-mail, it's just dloading files) using DOS ftp. The command I need to send is "ls mblist" which works in DOS ftp. I realize I could just use the listing methodes that PowerFTP provides to get a list of files, but I need the listing IN THE FORMAT BELOW so I can parse it for tracking purposes. I've tried using the command() method, but it doesn't seem to work for most of the commands I am currently using in my sessions. Am I under the false assumption that commands like "ls" and such are specific to dosftp and that I can't send them in Powerftp? I have included a snippet of one of my sessions and the format it comes out as; Any help would be appriciated. ftp> ---> ls mblist TYPE A ---> PORT 198,163,230,10,4,123 200 Port command successful. ---> NLST mblist 150 Opening ASCII mode data connection for transfer Service Ref. # St Item Type Item ID Unique ID 003234263991368264 Y DOC 02062802 0056B0 226 Transfer Complete. ftp: 146 bytes received in 0.41Seconds 0.36Kbytes/sec. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted July 5, 2002 3:07 PM Just use the NameList method of the FTP control, the look at Listing.Text after it returns. |
| nick_mages nmages@doncarsys.com From: Winnipeg, MB USA Posts: 14 Member Since: 07/05/02 |
posted July 5, 2002 3:17 PM OK, I actually am getting it to work by sending NLST mblist. Only thing is, how do I get the actual text I used to get back: Service Ref. # St Item Type Item ID Unique ID 003234263991368264 Y DOC 02062802 0056B0 It doesn't appear to come back in the reply variable in the progress event of the control. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted July 5, 2002 3:20 PM It would be in Ftp1.Listing.Text |
| nick_mages nmages@doncarsys.com From: Winnipeg, MB USA Posts: 14 Member Since: 07/05/02 |
posted July 5, 2002 3:23 PM Thanks, that worked great! I can't believe how easy this thing is to use. Very impressed with the support BTW |
| Reply | PowerTCP FTP for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|