Example Commands: ================= These scripts are designed so that they can be executed on both Windows and Unix. The top command is for Unixes and should work on most POSIX shells. After it runs, the script will terminate preventing Windows commands from running. The second and third command is for Windows and won't be reachable on Linux(because the top command will be run and the script will exit). Both determine the path to the script, use it to find the jar file, and execute a single command. Auto-Select in Persistent Mode ```sh :; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PBrowser; exit $? @ECHO OFF java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PBrowser ``` Auto-Select in Private Browsing Mode ```sh :; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PBrowser -private; exit $? @ECHO OFF java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PBrowser -private ``` Firefox in Persistent Mode ```sh :; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox; exit $? @ECHO OFF java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox ``` Firefox in Private Browsing Mode ```sh :; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox -private; exit $? @ECHO OFF java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox -private ``` Chromium in Persistent Mode ```sh :; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium; exit $? @ECHO OFF java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium ``` Chromium in Private Browsing Mode ```sh :; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium -private; exit $? @ECHO OFF java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium -private ```