private void btnFetchFile_Click(object sender, EventArgs e) { if (this.FetchList == null) return; if (this.FetchList.Length == 0) return; string f = FetchList[0]; IncomingTempFolder = Globals.GetExecutablePath() + "TMP" + Globals.GetDateTimeStamp() + "\\"; IncomingTempFolder = Globals.CreateFolder(IncomingTempFolder); if (IncomingTempFolder == null) { MessageBox.Show("Unable to create temp folder."); return; } txtLog.AppendText("\r\n"); txtLog.AppendText("---------------------------------"); txtLog.AppendText("\r\n"); com.FetchFile(f, IncomingTempFolder); }