Login  
Search All Forums
Dart Home | PowerTCP FTP for ActiveX | Custom Development Reply | PowerTCP FTP for ActiveX Topics | Forums   
AuthorForum: PowerTCP FTP for ActiveX
Topic: ftpcommand.null
emccormick

From: Dallas, TX USA
Posts: 7
Member Since: 03/22/04
posted March 22, 2004 12:51 PM

I'm blonde and male and need help.

I simply want to pass some commands directly to the FTP server. For example, "prompt" to toggle off the prompt.

The code I'm using:
         FTPHO.InvokeDart.PowerTCP.Ftp.FtpCommand.Null, "PROMPT")

Here is the error I get back:

"An unhandled exception of type 'Dart.PowerTCP.Ftp.ProtocolException' occurred in dart.powertcp.ftp.dll

Additional information: Request: PROMPT
Response: 500 'PROMPT': command not understood."

It doesn't matter which FTP command I pass, it doesn't understand and neither do I it seems...
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted March 22, 2004 1:02 PM

That's not an FTP command. I think you are thinking of the program "ftp.exe" which is part of windows. From what I can tell, it turns interactive mode on and off. This would have no effect on the communication done between the ftp program and the server.

emccormick

From: Dallas, TX USA
Posts: 7
Member Since: 03/22/04
posted March 22, 2004 1:41 PM

Thanks. That is true. What I eventually want to do is an "mget". The "prompt" just toggles off the confirmation on the "mget". 

Is it possible to perform an "mget" with the ftpcommand, or can you suggest a better way?

Thanks,

E
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted March 22, 2004 1:48 PM

There's no such thing as an MGET command either. When you call mget with ftp.exe you are really just calling RETR many times.

You would not be able to use Invoke to start a data transfer since we have to set other stuff. What you want is the Get command but you want to specify multiple files.

Please see the MGet sample app for an example of usage.
emccormick

From: Dallas, TX USA
Posts: 7
Member Since: 03/22/04
posted March 22, 2004 2:08 PM

Thanks again for the quick response. 

The feature of the MGET that allows for a wildcard selection is what I'm after.

The name of the file that I'm retreiving contains a timestamp and I was trying to aviod listing the directory, getting the file attributes and picking the appropriate one. In short I was trying to avoid working! Not being the sharpest knife in the drawer and all. 

However, it sounds like you are telling me that I may actually have to do some coding. I'll check out the MGET application and see if I can "borrow" some of the work.

Thanks for the clarification of true FTP command and those supported through FTP.exe. As you can see my FTP experience is pretty limited.

Thanks again,
E
Reply | PowerTCP FTP for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX