Skip to content

Commit

Permalink
add windows Launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
Dim145 committed Mar 16, 2021
1 parent cf89cf9 commit 49cd4ea
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Launcher/renameFile.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using System;
using System.Diagnostics;

// compile: csc renameFile.cs
// execute: renameFile [SERIES,AUTRES,ALEANAME]
public class renameFile
{
public static void Main( string[] arg )
{
// syntaxe de la commande a executer
ProcessStartInfo commande = new ProcessStartInfo("java","-jar \"C:/Path/To/Jar\" ./ " + (arg.Length > 0 ? arg[0] : ""));

// permet de cacher le terminal de commande
commande.WindowStyle = ProcessWindowStyle.Hidden;

// execute la commande definit
Process proc = Process.Start(commande);
}
}

0 comments on commit 49cd4ea

Please sign in to comment.