Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed ConsoleApp2/342_102.ico
Binary file not shown.
6 changes: 0 additions & 6 deletions ConsoleApp2/App.config

This file was deleted.

105 changes: 0 additions & 105 deletions ConsoleApp2/DifferentSLIAutoLoader.csproj

This file was deleted.

13 changes: 0 additions & 13 deletions ConsoleApp2/DifferentSLIAutoLoader.csproj.user

This file was deleted.

36 changes: 0 additions & 36 deletions ConsoleApp2/Properties/AssemblyInfo.cs

This file was deleted.

69 changes: 0 additions & 69 deletions ConsoleApp2/app.manifest

This file was deleted.

31 changes: 0 additions & 31 deletions DifferentSLIAutoLoader.sln

This file was deleted.

1 change: 1 addition & 0 deletions DifferentSLIAutoTools/DifferentSLIAutoTools.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="Logic.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
Expand Down
41 changes: 2 additions & 39 deletions DifferentSLIAutoTools/Form1.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Management;
using System.Threading;
using System.Diagnostics;

namespace DifferentSLIAutoTools
{
Expand All @@ -27,39 +17,12 @@ private void Form1_Load(object sender, EventArgs e)

private void button1_Click(object sender, EventArgs e)
{
Process s = new Process();
s.StartInfo.FileName = System.AppDomain.CurrentDomain.BaseDirectory + "shark\\Sea.exe";
s.StartInfo.Verb = "runas";
s.Start();
s.WaitForExit();
Thread.Sleep(1000);
Process d = new Process();
d.StartInfo.FileName = System.AppDomain.CurrentDomain.BaseDirectory + "dsefix\\dsefix.exe";
d.StartInfo.Verb = "runas";
d.Start();
d.WaitForExit();
ManagementObjectSearcher searcher =
new ManagementObjectSearcher("SELECT * FROM Win32_VideoController");
foreach (ManagementObject mo in searcher.Get())
{
PropertyData name = mo.Properties["Description"];
Process devManViewProc = new Process();
devManViewProc.StartInfo.FileName = System.AppDomain.CurrentDomain.BaseDirectory + "devmanview\\DevManView.exe";
devManViewProc.StartInfo.Arguments = "/disable_enable \"" + name.Value + "\"";
devManViewProc.StartInfo.Verb = "runas";
devManViewProc.Start();
devManViewProc.WaitForExit();
}
Logic.LoadDriver();
}

private void button2_Click(object sender, EventArgs e)
{
Process de = new Process();
de.StartInfo.FileName = System.AppDomain.CurrentDomain.BaseDirectory + "dsefix\\dsefix.exe";
de.StartInfo.Arguments = "-e";
de.StartInfo.Verb = "runas";
de.Start();
de.WaitForExit();
Logic.dsefix(true);
}
}
}
Loading