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","(e-mail address removed)");
FtpWebResponse response = (FtpWebResponse) request.GetResponse();
Console.WriteLine("status: {0}",response.StatusDescription);
response.Close();
}
regards
Emil Kvarnhammar
Thom Little said:
Is there an example of the use of the 2.0 FTP RemoveDirectory ...
anywhere?