Skip to content

Commit

Permalink
Uploaded File
Browse files Browse the repository at this point in the history
Added the .ps1 file used to run the .jar on Mac.
  • Loading branch information
Enilks committed Oct 26, 2023
1 parent dfcde2c commit 28aed5a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Run This File With Powershell to Play.ps1
Original file line number Diff line number Diff line change
@@ -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."
}

0 comments on commit 28aed5a

Please sign in to comment.