Chilkat HOME Android™ ASP Visual Basic VB.NET C# iOS (IPhone) Objective-C C++ C Unicode C++ Unicode C MFC Delphi DLL Delphi ActiveX FoxPro Java Perl PHP Extension PHP ActiveX Python PowerShell Ruby SQL Server VBScript
Delete Remote FTP Files Matching a Wildcard PatternDownload: Chilkat .NET Assemblies C# program demonstrating how to delete remote FTP files that match a wildcard pattern. Chilkat.Ftp2 ftp = new Chilkat.Ftp2(); bool unlocked = ftp.UnlockComponent("Anything begins 30-day trial"); if (!unlocked) { MessageBox.Show(ftp.LastErrorText); return; } ftp.Hostname = "ftp.***.com"; ftp.Username = "***"; ftp.Password = "***"; bool ok = ftp.Connect(); if (!ok) { MessageBox.Show(ftp.LastErrorText); return; } // Delete files in the current remote directory matching a pattern // and return the number of files deleted. int count = ftp.DeleteMatching("*.txt"); if (count == -1) { MessageBox.Show(ftp.LastErrorText); return; } Important: The download for this
example does not contain the ChilkatDotNet.dll which |
© 2000-2013 Chilkat Software, Inc. All Rights Reserved.