/// <summary> /// 复制单个文件 /// </summary> /// <param name="frompath">源地址</param> /// <param name="topath">目标地址</param> public static void CopyFile(string frompath, string topath) { FileWork.CopyFile(frompath, topath); }
/// <summary> /// 更新本地版本号|和下载路径便于以后的下载路径发生变化 /// </summary> public static void UpdateLocalXml() { document.DocumentElement.ChildNodes[0].Attributes["no"].Value = FileWork.GetDownVersion(); document.DocumentElement.ChildNodes[1].Attributes["url"].Value = FileWork.GetDownUrl(); document.Save(GetDictiory() + "\\LocalVersion.xml"); }