@@ -16,8 +16,7 @@ public static void InvokeCommand(
1616 bool separateProcessPerFileToBeOpened ,
1717 bool useShellExecute , //gregtt rename to OpenExeWithinItsWorkingDirectory
1818 ArtefactTypeToOpen artefactTypeToOpen ,
19- bool processWithinProcess ,
20- bool wrapArgumentsWithQuotations )
19+ bool processWithinProcess )
2120 {
2221 string fileName ;
2322 string workingDirectory = string . Empty ;
@@ -36,7 +35,7 @@ public static void InvokeCommand(
3635 {
3736 foreach ( var actualArtefactToBeOpened in actualArtefactsToBeOpened )
3837 {
39- var argument = GetSingleArgument ( actualArtefactToBeOpened , wrapArgumentsWithQuotations ) ;
38+ var argument = GetSingleArgument ( actualArtefactToBeOpened ) ;
4039 InvokeProcess ( argument , fileName , useShellExecute , workingDirectory , processWithinProcess ) ;
4140 }
4241 }
@@ -46,7 +45,7 @@ public static void InvokeCommand(
4645
4746 foreach ( var actualArtefactToBeOpened in actualArtefactsToBeOpened )
4847 {
49- arguments += GetSingleArgument ( actualArtefactToBeOpened , wrapArgumentsWithQuotations ) ;
48+ arguments += GetSingleArgument ( actualArtefactToBeOpened ) ;
5049 }
5150
5251 arguments = arguments . TrimEnd ( ' ' ) ;
@@ -55,19 +54,9 @@ public static void InvokeCommand(
5554 }
5655 }
5756
58- private static string GetSingleArgument ( string argument , bool wrapArgumentsWithQuotations )
57+ private static string GetSingleArgument ( string argument )
5958 {
60- string result ;
61-
62- if ( wrapArgumentsWithQuotations )
63- {
64- result = "\" " + argument + "\" " ;
65- }
66- else
67- {
68- result = argument ;
69- }
70-
59+ var result = "\" " + argument + "\" " ;
7160 return result + " " ;
7261 }
7362
0 commit comments