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: How to change Rootdirectory in FTP Server ActiveX
Wim

From: Alphen aan den Rijn, Netherlands
Posts: 23
Member Since: 06/22/05
posted September 10, 2008 10:16 AM

Hallo,
While we have a FTP connection how can we change the rootdirectory of the server? (We initiate this by sending a private 'SITE' command with a request for the new ROOT). When the server is started, can we use the '.Start' method again with the new root, or should we first logoff, stop and start the server again with the new root?
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted September 22, 2008 4:24 PM

Hi,
This should be posted under the PowerTCP Server for ActiveX Forum.

I apologize for the tardiness of our response.

You would have to add your code for restarting in the control's SITE event handler.

The control was really not meant to be started and stopped in this fashion.
The only way to set the root is to call Start.
And yes, you will need to first call Stop, which is will disrupt your server (cause clients to disconnect, including your client).

Hope it helps,
-ken

Wim

From: Alphen aan den Rijn, Netherlands
Posts: 23
Member Since: 06/22/05
posted September 22, 2008 6:24 PM

Hallo Ken,

Thank you for your answer. That was how we solved it but we also found a more graceful way of doing it. Share the drive and mount it into an empty directory in the root drive. Then you can address the mounted drive like a directory in the root drive. Works without any problem.
Reply | PowerTCP FTP for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX