From 28aed5a9b32cfcf4c05b9fde47d3d9a000dff4a3 Mon Sep 17 00:00:00 2001 From: Enilks <144824982+Enilks@users.noreply.github.com> Date: Wed, 25 Oct 2023 21:23:26 -0400 Subject: [PATCH] Uploaded File Added the .ps1 file used to run the .jar on Mac. --- Run This File With Powershell to Play.ps1 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Run This File With Powershell to Play.ps1 diff --git a/Run This File With Powershell to Play.ps1 b/Run This File With Powershell to Play.ps1 new file mode 100644 index 0000000..78610ef --- /dev/null +++ b/Run This File With Powershell to Play.ps1 @@ -0,0 +1,9 @@ +$currentDirectory = Get-Location +$jarFile = "mfee.jar" +$foundJar = Get-ChildItem -Path $currentDirectory -Filter $jarFile -Recurse | Select-Object -First 1 +if ($foundJar) { + $javaExecutable = "java" + Start-Process -FilePath $javaExecutable -ArgumentList "-jar", $foundJar.FullName +} else { + Write-Host "The JAR file '$jarFile' was not found in the current directory or its subdirectories." +} \ No newline at end of file