mirror of
https://github.com/vinaypamnani/wmie2.git
synced 2026-03-10 14:43:49 +01:00
Added comment line parameter for COMPUTERNAME.
This commit is contained in:
parent
3cda183090
commit
c14b0ad2ad
|
|
@ -1,6 +1,7 @@
|
|||
Version 2.0.0.2 [10-05-2017]
|
||||
|
||||
* Migration to GitHub.
|
||||
* Added option to specify COMPUTERNAME as a parameter and automatically connect, Example: WmiExplorer.exe COMPUTERNAME.
|
||||
|
||||
Version 2.0.0.0 [10-27-2014]
|
||||
|
||||
|
|
|
|||
11
WmiExplorer/WmiExplorer.Functions.Designer.cs
generated
11
WmiExplorer/WmiExplorer.Functions.Designer.cs
generated
|
|
@ -1746,6 +1746,17 @@ namespace WmiExplorer
|
|||
SetStatusBar2(String.Empty, MessageCategory.Error);
|
||||
}
|
||||
|
||||
private void ProcessCommandLineArgs()
|
||||
{
|
||||
string[] args = Environment.GetCommandLineArgs();
|
||||
|
||||
if (args.Length == 2)
|
||||
{
|
||||
textBoxComputerName.Text = args[1].ToString();
|
||||
buttonComputerConnect.PerformClick();
|
||||
}
|
||||
}
|
||||
|
||||
private void PopulateClassProperties(WmiClass wmiClass)
|
||||
{
|
||||
ResetListClassProperties();
|
||||
|
|
|
|||
|
|
@ -1618,6 +1618,7 @@ namespace WmiExplorer
|
|||
private void WmiExplorer_Load(object sender, EventArgs e)
|
||||
{
|
||||
InitializeForm();
|
||||
ProcessCommandLineArgs();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue