C#

C# Renci.SshNet Download Files in a Directory

//Example Renci.SSHNet Simple Usage to download files in a directory string BackupFolder="C:\\backup"; SftpClient sftp = null; sftp = new SftpClient(Host, Port, Username, upassword); foreach (Renci.SshNet.Sftp.SftpFile ftpfile in sftp.ListDirectory(".")) { using (FileStream fs = new FileStream(BackupFolder + "\\" + ftpfile.Name, FileMode.Create))…

C# SQL Server Compact (SqlServerCe) Helper Class

/// <summary> /// System.Data.SqlServerCe Helper Class /// </summary> public class SqlCEHelper : IDisposable { private SqlCeConnection LocalConnection = null; private bool disposed = false; // to detect redundant calls /// <summary> /// Contructor expects: @"Data Source=pathtofile.sdf"; /// </summary> /// <param…

%d bloggers like this: