(string cmdline, string parameter)
| 127 | } |
| 128 | |
| 129 | private static string ExtractValueFromCommandLine(string cmdline, string parameter) |
| 130 | { |
| 131 | int index = cmdline.IndexOf(parameter); |
| 132 | if (index >= 0) |
| 133 | { |
| 134 | index += parameter.Length; |
| 135 | int endIndex = cmdline.IndexOf("\"", index); |
| 136 | if (endIndex > index) |
| 137 | { |
| 138 | return cmdline.Substring(index, endIndex - index); |
| 139 | } |
| 140 | } |
| 141 | return null; |
| 142 | } |
| 143 | |
| 144 | public static bool IsValidDir(string path) |
| 145 | { |
nothing calls this directly
no outgoing calls
no test coverage detected