How Can I Perform Command On FTP Server ?
Hi
How Can I (Delete File, Rename, Create Directory , ext..) from the FTP Server with the Help of FTP Classes in .NET Framework 2.0
I have the following Code to Delete the File From FTP Server
| |
FtpWebRequest ftpRequest = (FtpWebRequest)WebRequest.Create("ftp://localhost/FileName.txt");ftpRequest.Credentials = newNetworkCredential(this.username,this.password);ftpRequest.Method = WebRequestMethods.Ftp.DeleteFile;
|
But How Can I send the command to perform the deletion ?And Thanks with my regarding
Fraas
[1431 byte] By [
Fraas] at [2008-3-7]
thanks
Malar for your reply
but also I have another Question

How can I get information when I want to get information about Directory Content information.
| | ftpRequest.Method = WebRequestMethods.Ftp.ListDirectoryDetails |
How can I get the information for this request (ListDirectoryDetails) ?thanks with my regarding