public void NoUSB_AutoDownLoad() { string[] array = new string[3]; string Receive_CompactFile; if (NoUSBlist.Count != 0) { for (int i = 0; i < NoUSBlist.Count; i++) { Receive_CompactFile = NoUSBlist[i].ToString(); array = Receive_CompactFile.Split('\a'); if (id == array[0]) { char[] delimiterChars = { '\\' }; string[] words = array[1].Split(delimiterChars); Server_File = words[words.Length - 1]; multiFileName[i] = Server_File; } } if (id == array[0]) { if (System.IO.File.Exists(usbpath + USB_Path + id + " - " + Server_File)) //USB_Path = "SchoolInteligentUSB\\FileRoom\\" return; else { string UpdateFile = id + " - " + Server_File; System.Windows.Forms.DialogResult dr = System.Windows.Forms.MessageBox.Show("서버에 업데이트된 파일이 있습니다. 받으시겠습니까?", "알림", System.Windows.Forms.MessageBoxButtons.OKCancel, System.Windows.Forms.MessageBoxIcon.Information); if (dr == System.Windows.Forms.DialogResult.OK) { DownloadFile(multiFileName); WindowsXml useruixml = new WindowsXml(); useruixml.NoUsbDownLoadXML_Write(UpdateFile); Process.Start(usbpath + "SchoolInteligentUSB\\FileRoom"); MessageBox.Show("다운로드가 완료되었습니다."); } } } } else return; }