You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li><ahref="../../../com/jgcomptech/tools/CommandInfo.html" title="class in com.jgcomptech.tools"><spanclass="typeNameLink">Prev Class</span></a></li>
52
-
<li><ahref="../../../com/jgcomptech/tools/ComputerInfo.html" title="class in com.jgcomptech.tools"><span
<li><ahref="../../../com/jgcomptech/tools/ComputerInfo.html" title="class in com.jgcomptech.tools"><spanclass="typeNameLink">Next Class</span></a></li>
<divclass="block">Returns the text result of the command</div>
213
+
<divclass="block">Returns the text result of the command</div>
215
214
</li>
216
215
</ul>
217
216
<aname="ExitCode">
@@ -221,7 +220,7 @@ <h4>Result</h4>
221
220
<liclass="blockList">
222
221
<h4>ExitCode</h4>
223
222
<pre>public int ExitCode</pre>
224
-
<divclass="block">Returns the exit code, returns 0 if no error occurred</div>
223
+
<divclass="block">Returns the exit code, returns 0 if no error occurred</div>
225
224
</li>
226
225
</ul>
227
226
</li>
@@ -286,8 +285,7 @@ <h4>print</h4>
286
285
<divclass="subNav">
287
286
<ulclass="navList">
288
287
<li><ahref="../../../com/jgcomptech/tools/CommandInfo.html" title="class in com.jgcomptech.tools"><spanclass="typeNameLink">Prev Class</span></a></li>
289
-
<li><ahref="../../../com/jgcomptech/tools/ComputerInfo.html" title="class in com.jgcomptech.tools"><span
<li><ahref="../../../com/jgcomptech/tools/ComputerInfo.html" title="class in com.jgcomptech.tools"><spanclass="typeNameLink">Next Class</span></a></li>
<pre>public class <spanclass="typeNameLabel">CommandInfo</span>
112
112
extends java.lang.Object</pre>
113
-
<divclass="block">Allows you to run console commands and either run them elevated or not and return the result to a
114
-
string
115
-
</div>
113
+
<divclass="block">Allows you to run console commands and either run them elevated or not and return the result to a string</div>
116
114
</li>
117
115
</ul>
118
116
</div>
@@ -173,26 +171,25 @@ <h3>Method Summary</h3>
173
171
<tdclass="colFirst"><code>static <ahref="../../../com/jgcomptech/tools/CommandInfo.Output.html" title="class in com.jgcomptech.tools">CommandInfo.Output</a></code></td>
<divclass="block">Runs command and returns results to ArrayList in Output object</div>
174
+
<divclass="block">Runs command and returns results to ArrayList in Output object</div>
177
175
</td>
178
176
</tr>
179
177
<trid="i1" class="rowColor">
180
178
<tdclass="colFirst"><code>static <ahref="../../../com/jgcomptech/tools/CommandInfo.Output.html" title="class in com.jgcomptech.tools">CommandInfo.Output</a></code></td>
title="class in com.jgcomptech.tools">CommandInfo.Output</a></code></td>
186
+
<tdclass="colFirst"><code>static <ahref="../../../com/jgcomptech/tools/CommandInfo.Output.html" title="class in com.jgcomptech.tools">CommandInfo.Output</a></code></td>
<pre>public static <ahref="../../../com/jgcomptech/tools/CommandInfo.Output.html" title="class in com.jgcomptech.tools">CommandInfo.Output</a> Run(java.lang.String command,
244
241
java.lang.String args)</pre>
245
-
<divclass="block">Runs command and returns results to ArrayList in Output object</div>
242
+
<divclass="block">Runs command and returns results to ArrayList in Output object</div>
<dd><code>args</code> - Arguments to pass to command</dd>
245
+
<dd><code>command</code> - Command to run</dd>
246
+
<dd><code>args</code> - Arguments to pass to command</dd>
250
247
<dt><spanclass="returnLabel">Returns:</span></dt>
251
248
<dd>Output object</dd>
252
249
</dl>
@@ -261,16 +258,14 @@ <h4>Run</h4>
261
258
<pre>public static <ahref="../../../com/jgcomptech/tools/CommandInfo.Output.html" title="class in com.jgcomptech.tools">CommandInfo.Output</a> Run(java.lang.String command,
262
259
java.lang.String args,
263
260
boolean elevate)</pre>
264
-
<divclass="block">Runs command elevated, shows cmd window and pauses window when command is complete <p>
265
-
If "elevate" parameter is false, it is ignored and and results will be saved to Output object
266
-
<p>
267
-
If OS is not Windows, "elevate" parameter is ignored and results will be saved to Output object</div>
261
+
<divclass="block">Runs command elevated, shows cmd window and pauses window when command is complete <p>
262
+
If "elevate" parameter is false, it is ignored and and results will be saved to Output object <p>
263
+
If OS is not Windows, "elevate" parameter is ignored and results will be saved to Output object</div>
<dd><code>args</code> - Arguments to pass to command</dd>
272
-
<dd><code>elevate</code> - Boolean to set if command should be run elevated, if true Output object will be empty
273
-
</dd>
266
+
<dd><code>command</code> - Command to run</dd>
267
+
<dd><code>args</code> - Arguments to pass to command</dd>
268
+
<dd><code>elevate</code> - Boolean to set if command should be run elevated, if true Output object will be empty</dd>
274
269
<dt><spanclass="returnLabel">Returns:</span></dt>
275
270
<dd>Output object</dd>
276
271
</dl>
@@ -283,30 +278,25 @@ <h4>Run</h4>
283
278
<liclass="blockList">
284
279
<h4>Run</h4>
285
280
<pre>@Nullable
286
-
public static <ahref="../../../com/jgcomptech/tools/CommandInfo.Output.html"
287
-
title="class in com.jgcomptech.tools">CommandInfo.Output</a> Run(java.lang.String command,
281
+
public static <ahref="../../../com/jgcomptech/tools/CommandInfo.Output.html" title="class in com.jgcomptech.tools">CommandInfo.Output</a> Run(java.lang.String command,
288
282
java.lang.String args,
289
283
boolean elevate,
290
284
boolean hideWindow,
291
285
boolean keepWindowOpen)</pre>
292
-
<divclass="block">Runs command according to parameters, will only open cmd window if OS is Windows <p>
293
-
If OS is not Windows, all boolean parameters are ignored and results will be saved to Output object</div>
286
+
<divclass="block">Runs command according to parameters, will only open cmd window if OS is Windows <p>
287
+
If OS is not Windows, all boolean parameters are ignored and results will be saved to Output object</div>
0 commit comments