WojciechKlups / PriceChecker

0 stars 0 forks source link

Prepare PowerShell script #6

Open WojciechKlups opened 2 years ago

WojciechKlups commented 2 years ago

Please prepare PowerShell script for running this app's jar on system launch.

WojciechKlups commented 2 years ago

In PowerShell simply put java -jar path\to\jar\[filename].jar then create cmd file with this command properly prepared: powerShell path\to\powershell_script.ps1 >> path\to\log_file.log. Then put this cmd file in C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup location. Add to project's description that there is a possibility to run this app on system startup but as prerequisite the user has to have JRE installed.

WojciechKlups commented 1 year ago

Powershell script should have functionality that could retrieve path from which this script was evoked. Thus, we can use this path as jar file path, only requirement for the user will be that this script file and jar file have to be in the same directory.