Download ActiveEmail    |     Visit the ActiveEmail website

Index - Log in! - Sign up! - Visit website
Remote Directory not Deleted by using DeleteDir method
 
ActiveXperts Software Forum Index -> ActiveEmail Toolkit -> Development platforms
 
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Umesh.chape



Joined: 07 May 2008
Posts: 2

PostPosted: Wed May 07, 2008 5:23 am    Post subject: Remote Directory not Deleted by using DeleteDir method

Hi friends,
I download Activex software and try to use methods from class file (Interop.ASOCKETLib.dll).
It works fine foe methods like connect and Delete file.
But when i try to use Deletedir for delete server directory form ftp site.It is unable to delete the direcotry.
I used following code to delete directory.

ASOCKETLib.FtpServer FTPserver = new ASOCKETLib.FtpServer();
FTPserver.Connect(host, user, password);
FTPserver.DeleteDir(item.remotePath);


Is any one help me ?
Back to top
Leon



Joined: 11 Jul 2007
Posts: 405

PostPosted: Wed May 07, 2008 1:19 pm    Post subject:

Hi,

Can you send me a logfile ?
Most probably it is because you do not have enough rights to delete this dir, or the directory is not empty.

Leon
Back to top
Umesh.chape



Joined: 07 May 2008
Posts: 2

PostPosted: Thu May 08, 2008 3:54 am    Post subject: Yes, the directory is not empty

Yes, the directory is not empty. How can i do for directory with files
Back to top
Leon



Joined: 11 Jul 2007
Posts: 405

PostPosted: Thu May 08, 2008 7:04 am    Post subject:

Hi,

You have to delete all files using DeleteFile() Method first,

Leon
Back to top
Display posts from previous:   
Post new topic   Reply to topic
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum