Skip to content

Commit 03d150c

Browse files
committed
Initial commit
1 parent 43b8501 commit 03d150c

File tree

4 files changed

+84
-0
lines changed

4 files changed

+84
-0
lines changed

DeleteJavaCheck.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.1.32414.318
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DeleteJavaCheck", "DeleteJavaCheck\DeleteJavaCheck.csproj", "{69F67FFC-FD5F-4DA3-8975-C7C7D781E785}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{69F67FFC-FD5F-4DA3-8975-C7C7D781E785}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{69F67FFC-FD5F-4DA3-8975-C7C7D781E785}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{69F67FFC-FD5F-4DA3-8975-C7C7D781E785}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{69F67FFC-FD5F-4DA3-8975-C7C7D781E785}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {0444E9B9-D79C-472A-A1DB-E431548043E4}
24+
EndGlobalSection
25+
EndGlobal
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net6.0</TargetFramework>
6+
</PropertyGroup>
7+
8+
<ItemGroup>
9+
<None Remove="location.txt" />
10+
</ItemGroup>
11+
12+
<ItemGroup>
13+
<Content Include="location.txt">
14+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
15+
</Content>
16+
</ItemGroup>
17+
18+
</Project>

DeleteJavaCheck/Program.cs

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
using System;
2+
using System.IO;
3+
4+
namespace DeleteJavaCheck;
5+
6+
internal class Program
7+
{
8+
private static string f;
9+
10+
static void Main(string[] args)
11+
{
12+
Console.WriteLine("DeleteJavaCheck Running");
13+
14+
String[] lines = File.ReadAllLines(@"location.txt");
15+
for (int i = 0; i < lines.Length; i++)
16+
{
17+
if (lines[i][..1] != "#")
18+
{
19+
f = (lines[i])+"\\JavaCheck.jar";
20+
if (File.Exists(f))
21+
{
22+
File.Delete(f);
23+
Console.WriteLine("File deleted!");
24+
} else
25+
{
26+
Console.WriteLine("File doesn't exist, and couldn't be deleted.");
27+
}
28+
}
29+
}
30+
31+
Console.WriteLine("Program completed. Press enter to terminate app");
32+
Console.ReadKey();
33+
}
34+
}

DeleteJavaCheck/location.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Instructions:
2+
# Enter the directory of the location of JavaCheck.jar below (on line 7)
3+
# Please note that the location of the launcher is dependent on where you got it from
4+
# Microsoft Store: C:\Users\[USERNAME]\AppData\Local\Packages\Microsoft.4297127D64EC6_8wekyb3d8bbwe\LocalCache\Local\game
5+
# Old launcher: Dependent on where you installed it. NOTE: It's not very well documented where the default install is, but I'll update this file when I have an update
6+
# Run DeleteJavaCheck.exe as an admin or you may have trouble deleting the file
7+
[ENTER DIRECTORY HERE]

0 commit comments

Comments
 (0)