0

is possible to shortcut : java -jar myscript.jar to myscript.

Like a real command, is possible in Linux (by moving file in specific directory) but is it possible in Windows ?

Thanks !

  • 2
    create a `bat` file which executes the full command and add it to the `PATH`. – BackSlash Jan 17 '17 at 18:11
  • Great idea, but what i add to the path ? –  Jan 17 '17 at 18:13
  • 1
    The folder where the file is placed. Or, if you want, you can place the file into the `System32` directory (which should already be part of the `PATH`). But I would not place files inside the `System32` folder, I think that the "clean way" is to create your folder and add it to the `PATH`. – BackSlash Jan 17 '17 at 18:16
  • try http://stackoverflow.com/questions/20530996/aliases-in-windows-command-prompt – rodrigo Jan 17 '17 at 18:17
  • Nice! I'll try, thanks, BackSlash :) –  Jan 17 '17 at 18:20

1 Answers1

1

Windows and linux have aliases, in the windows you can call "calc" or "cmd" from anywhere.

So, try read this topics:

Community
  • 1
  • 1
rodrigo
  • 342
  • 1
  • 2
  • 12