ServerLog:: Merge기능 옵션
This commit is contained in:
@@ -397,21 +397,41 @@ namespace DDUtilityApp.MESDOWNLOADER
|
||||
}
|
||||
|
||||
// FileMerge
|
||||
if (downloads.Count == 1)
|
||||
if (this.chkMerge.Checked)
|
||||
{
|
||||
string fileName = downloads[0];
|
||||
if (hasZip)
|
||||
if (downloads.Count == 1)
|
||||
{
|
||||
string path = System.IO.Path.Combine(this.tboxDownPath.Text, this.cboxServer.Text, fileName);
|
||||
string command = $"/select,{path}";
|
||||
Process.Start($"explorer.exe", command);
|
||||
string fileName = downloads[0];
|
||||
if (hasZip)
|
||||
{
|
||||
string path = System.IO.Path.Combine(this.tboxDownPath.Text, this.cboxServer.Text, fileName);
|
||||
string command = $"/select,{path}";
|
||||
Process.Start($"explorer.exe", command);
|
||||
}
|
||||
else
|
||||
{
|
||||
string extension = System.IO.Path.GetExtension(fileName);
|
||||
if (string.Compare(extension, ".Log", true) != 0)
|
||||
System.IO.File.Move(fileName, fileName += ".log");
|
||||
System.Diagnostics.Process.Start(fileName);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
string extension = System.IO.Path.GetExtension(fileName);
|
||||
if (string.Compare(extension, ".Log", true) != 0)
|
||||
System.IO.File.Move(fileName, fileName += ".log");
|
||||
System.Diagnostics.Process.Start(fileName);
|
||||
if (hasZip)
|
||||
{
|
||||
string path = System.IO.Path.Combine(this.tboxDownPath.Text, this.cboxServer.Text);
|
||||
string command = $"/select,{path}";
|
||||
Process.Start($"explorer.exe", path);
|
||||
}
|
||||
else
|
||||
{
|
||||
string fileName = Util.GetFileMerge(downloads);
|
||||
string extension = System.IO.Path.GetExtension(fileName);
|
||||
if (string.Compare(extension, ".Log", true) != 0)
|
||||
System.IO.File.Move(fileName, fileName += ".log");
|
||||
System.Diagnostics.Process.Start(fileName);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -424,11 +444,8 @@ namespace DDUtilityApp.MESDOWNLOADER
|
||||
}
|
||||
else
|
||||
{
|
||||
string fileName = Util.GetFileMerge(downloads);
|
||||
string extension = System.IO.Path.GetExtension(fileName);
|
||||
if (string.Compare(extension, ".Log", true) != 0)
|
||||
System.IO.File.Move(fileName, fileName += ".log");
|
||||
System.Diagnostics.Process.Start(fileName);
|
||||
foreach (string download in downloads)
|
||||
System.Diagnostics.Process.Start(download);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user