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: Add extra information to FTP log using Command method?
Jurgen Baute

From: Oostkamp, Belgium
Posts: 12
Member Since: 06/24/02
posted September 10, 2004 4:54 AM

Hi,

what I'd like to do is find a way to add some extra information (short strings with some info) to the FTP logfile by abusing/using some FTP command.

I'm thinking the .Command() method can be used together with some FTP command which really doesn't have to do anything, but being logged in the FTP servers logfile.

However I can't find a command that doesn't fail when I add some random data to it.
I tried using NOOP, but that doesn't get logged, and the HELP command fails when I add extra data.

Any ideas?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted September 10, 2004 8:52 AM

I can't really think of a command that would allow that without error.

What if you stored an empty file called "MyComment.<here is my comment>", then delete it? Then you could look at the log for any STOR's that start with "MyComment."
Jurgen Baute

From: Oostkamp, Belgium
Posts: 12
Member Since: 06/24/02
posted September 10, 2004 9:39 AM

Not a bad idea,
creating a file in a non existing directory and trapping & ignoring the runtime error ensures I don't actually have to create & delete a file...
Reply | PowerTCP FTP for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX