Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / March 2006

Tip: Looking for answers? Try searching our database.

RemoveDirecoty

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Thom Little - 24 Mar 2006 23:01 GMT
Is there an example of the use of the 2.0 FTP RemoveDirectory ... anywhere?

Signature

--  Thom Little  --  www.tlanet.net  --  Thom Little Associates, Ltd.
--

Emil Kvarnhammar - 25 Mar 2006 13:08 GMT
Hi,

Something like this would probably work:

public static void Main(string[] args)
{
     Uri uri = new Uri(args[0]);
     FtpWebRequest request = (FtpWebRequest) WebRequest.Create(uri);

     request.Method = WebRequestMethods.Ftp.RemoveDirectory;
     request.Credentials = new
NetworkCredential("anonymous","x@nospam.com");

     FtpWebResponse response = (FtpWebResponse) request.GetResponse();
     Console.WriteLine("status: {0}",response.StatusDescription);
     response.Close();
}

regards
Emil Kvarnhammar

> Is there an example of the use of the 2.0 FTP RemoveDirectory ...
> anywhere?
Thom Little - 25 Mar 2006 18:31 GMT
That is what I assumed also and it was not operating correctly.  With your
response I looked closer and found that my test directory structure was not
what I assumed.

It is now corrected.

Thanks for the help.

Signature

--  Thom Little  --  www.tlanet.net  --  Thom Little Associates, Ltd.
--

> Hi,
>
[quoted text clipped - 19 lines]
>> Is there an example of the use of the 2.0 FTP RemoveDirectory ...
>> anywhere?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.