• 大小: 1.38M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: FTP  C#  升级  服务器  下载  

资源简介

在线升级模块的客户端主窗体启动时,从FTP服务器上下载软件升级文件,并与计算机上的当前版本相比较,如果有最新版本,则弹出“版本信息”窗体,并将新版本及软件的更新信息显示出来。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Collections;

namespace Upgrade
{
    public partial class frmMain : Form
    {
        public frmMain()
        {
            InitializeComponent();
        }

        #region 实例化公共类对象,并定义公共变量
        UpgradeClass.OperateClass operateclass = new UpgradeClass.OperateClass();//实例化公共类对象
        string strName = Application.StartupPath + “\\UpgradeSet.ini“;  //定义要读取的INI文件
        public static string strServer = ““;                                   //记录升级服务器
        public static string strUserID = ““;                                   //记录升级频率
        public static string strPwd = ““;         

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2009-07-09 10:10  Upgrade\
     目录           0  2009-07-09 10:10  Upgrade\Upgrade\
     文件        2203  2008-07-15 11:17  Upgrade\Upgrade.sln
     文件       46592  2008-08-02 16:14  Upgrade\Upgrade.suo
     目录           0  2009-07-09 10:10  Upgrade\UpgradeClass\
     目录           0  2009-07-09 10:10  Upgrade\UpgradeClass\bin\
     目录           0  2009-07-09 10:10  Upgrade\UpgradeClass\bin\Debug\
     文件       28672  2008-07-18 14:16  Upgrade\UpgradeClass\bin\Debug\UpgradeClass.dll
     文件       30208  2008-07-18 14:16  Upgrade\UpgradeClass\bin\Debug\UpgradeClass.pdb
     目录           0  2009-07-09 10:10  Upgrade\UpgradeClass\obj\
     目录           0  2009-07-09 10:10  Upgrade\UpgradeClass\obj\Debug\
     目录           0  2009-07-09 10:10  Upgrade\UpgradeClass\obj\Debug\TempPE\
     文件       28672  2008-07-18 14:16  Upgrade\UpgradeClass\obj\Debug\UpgradeClass.dll
     文件       30208  2008-07-18 14:16  Upgrade\UpgradeClass\obj\Debug\UpgradeClass.pdb
     文件         384  2008-07-21 11:06  Upgrade\UpgradeClass\obj\UpgradeClass.csproj.FileListAbsolute.txt
     文件       30952  2008-07-18 14:16  Upgrade\UpgradeClass\OperateClass.cs
     目录           0  2009-07-09 10:10  Upgrade\UpgradeClass\Properties\
     文件        1319  2008-07-09 16:42  Upgrade\UpgradeClass\Properties\AssemblyInfo.cs
     文件        2061  2008-07-10 09:25  Upgrade\UpgradeClass\UpgradeClass.csproj
     目录           0  2009-07-09 10:10  Upgrade\UpgradeServer\
     目录           0  2009-07-09 10:10  Upgrade\UpgradeServer\bin\
     目录           0  2009-07-09 10:10  Upgrade\UpgradeServer\bin\Debug\
     文件       28672  2008-07-18 14:16  Upgrade\UpgradeServer\bin\Debug\UpgradeClass.dll
     文件       30208  2008-07-18 14:16  Upgrade\UpgradeServer\bin\Debug\UpgradeClass.pdb
     文件       40960  2008-08-02 16:14  Upgrade\UpgradeServer\bin\Debug\UpgradeServer.exe
     文件       46592  2008-08-02 16:14  Upgrade\UpgradeServer\bin\Debug\UpgradeServer.pdb
     文件        5632  2005-11-11 22:25  Upgrade\UpgradeServer\bin\Debug\UpgradeServer.vshost.exe
     文件       14599  2008-08-02 16:14  Upgrade\UpgradeServer\frmMain.cs
     文件       32289  2008-08-02 16:14  Upgrade\UpgradeServer\frmMain.designer.cs
     文件       12748  2008-08-02 16:14  Upgrade\UpgradeServer\frmMain.resx
     文件        1416  2008-07-15 10:28  Upgrade\UpgradeServer\frmNewFolder.cs
............此处省略85个文件信息

评论

共有 条评论