개정판 06f13e11
한글 파일명 다운로드 에러 수정
멀티 서비스 수정
Change-Id: I1a7eb48f1c758d32c805eb0394c66b92f9d27330
ConvertService/ServiceBase/Markus.Service.Extensions/Exntensions/Process.cs | ||
---|---|---|
24 | 24 |
try |
25 | 25 |
{ |
26 | 26 |
result.WorkingDirectory = ProcessWorkingDirectory(commandLine); |
27 |
|
|
27 |
|
|
28 | 28 |
result.CommandLine = SplitArguments(RemoveCommadLinesFilePath(commandLine)).ToList(); |
29 | 29 |
} |
30 | 30 |
catch (Exception ex) |
... | ... | |
33 | 33 |
} |
34 | 34 |
return result; |
35 | 35 |
} |
36 |
|
|
36 |
|
|
37 | 37 |
/// <summary> |
38 | 38 |
/// 프로세스의 실행 경로 |
39 | 39 |
/// </summary> |
... | ... | |
45 | 45 |
return ProcessWorkingDirectory(commandLine); |
46 | 46 |
} |
47 | 47 |
|
48 |
private static string ProcessCommandLinesQuery(int processId)
|
|
48 |
private static string ProcessCommandLinesQuery(int processId) |
|
49 | 49 |
{ |
50 | 50 |
string result = ""; |
51 | 51 |
|
... | ... | |
77 | 77 |
for (int i = 0; i < splitCommand.Count(); i++) |
78 | 78 |
{ |
79 | 79 |
filePath += " " + splitCommand[i].Replace("\"", ""); |
80 |
|
|
81 |
if (System.IO.File.Exists(filePath))
|
|
80 |
|
|
81 |
if (IO.FileExists(filePath))
|
|
82 | 82 |
{ |
83 | 83 |
System.IO.FileInfo info = new System.IO.FileInfo(filePath); |
84 | 84 |
filePath = info.DirectoryName; |
85 | 85 |
break; |
86 | 86 |
} |
87 |
else if(i == splitCommand.Count() -1)
|
|
87 |
else if (i == splitCommand.Count() - 1)
|
|
88 | 88 |
{ |
89 | 89 |
var firstCmd = splitCommand.First(); |
90 | 90 |
|
... | ... | |
119 | 119 |
{ |
120 | 120 |
filePath += " " + splitCommand[i]; |
121 | 121 |
|
122 |
if(System.IO.File.Exists(filePath.Replace("\"", "")))
|
|
122 |
if (IO.FileExists(filePath.Replace("\"", "")))
|
|
123 | 123 |
{ |
124 |
result = string.Join(" ",splitCommand.Skip(i+1).Take(splitCommand.Count() - i));
|
|
124 |
result = string.Join(" ", splitCommand.Skip(i + 1).Take(splitCommand.Count() - i));
|
|
125 | 125 |
break; |
126 | 126 |
} |
127 | 127 |
else if (i == splitCommand.Count() - 1) |
내보내기 Unified diff