コード例 #1
0
 private void button1_Click(object sender, RoutedEventArgs e)
 {
     Ftp ftpaccess = new Ftp(GlobalTools.GetexeLocation(), "simple.pnz", Ftp.dnsResolve("ftp.technosamurai.net"), "*****@*****.**", "public");
     StatusTxt.AppendText("Creating Missing Folders\n");
     Queue<string> fileNameList = ftpaccess.getFileListQueue();
     ftpaccess.ftpCred.filePath = GlobalTools.GetexeLocation();
     foreach (string fileName in fileNameList)
     {
         //if (GlobalTools.FileExist(GlobalTools.GetexeLocation() + fileName))
         //{
         ftpaccess.ftpCred.fileName = fileName;
         StatusTxt.AppendText("Getting " + fileName + "......");
         ftpaccess.getFileFtp();
         StatusTxt.AppendText("Finished\n");
         //}
     }
 }
コード例 #2
0
        private void button1_Click(object sender, RoutedEventArgs e)
        {
            Ftp ftpaccess = new Ftp(GlobalTools.GetexeLocation(), "simple.pnz", Ftp.dnsResolve("ftp.technosamurai.net"), "*****@*****.**", "public");

            StatusTxt.AppendText("Creating Missing Folders\n");
            Queue <string> fileNameList = ftpaccess.getFileListQueue();

            ftpaccess.ftpCred.filePath = GlobalTools.GetexeLocation();
            foreach (string fileName in fileNameList)
            {
                //if (GlobalTools.FileExist(GlobalTools.GetexeLocation() + fileName))
                //{
                ftpaccess.ftpCred.fileName = fileName;
                StatusTxt.AppendText("Getting " + fileName + "......");
                ftpaccess.getFileFtp();
                StatusTxt.AppendText("Finished\n");
                //}
            }
        }