Esempio n. 1
0
 /// <summary>
 /// 构造文件复制对像
 /// </summary>
 /// <param name="listview">用以获取文件路径列表视图</param>
 /// <param name="USBboot">要复制的目标盘</param>
 /// <param name="clear">是否删除U盘原有文件</param>
 public CopyFileToUSB(string[] SourcePaths, string USBboot, bool clear)
 {
     doFilesCount = new filesCount_paths(SourcePaths);
     this.SourcePaths = SourcePaths;
     this.clear = clear;
     USBinfo = new DriveInfo(USBboot.Substring(0, 1));
     CopyInfo = "【" + USBinfo.Name + "盘_" + USBinfo.VolumeLabel + "】";
 }
Esempio n. 2
0
 /// <summary>
 /// 构造文件复制对像
 /// </summary>
 /// <param name="listview">用以获取文件路径列表视图</param>
 /// <param name="USBboot">要复制的目标盘</param>
 /// <param name="clear">是否删除U盘原有文件</param>
 public CopyFileToUSB(string[] SourcePaths, string USBboot, bool clear)
 {
     doFilesCount     = new filesCount_paths(SourcePaths);
     this.SourcePaths = SourcePaths;
     this.clear       = clear;
     USBinfo          = new DriveInfo(USBboot.Substring(0, 1));
     CopyInfo         = "【" + USBinfo.Name + "盘_" + USBinfo.VolumeLabel + "】";
 }