Skip to content

Commit

Permalink
Merge pull request #1141 from jseager7/1140-bat-typo
Browse files Browse the repository at this point in the history
Update command to create robot.bat file
  • Loading branch information
jamesaoverton authored Sep 20, 2023
2 parents 67a7b6c + 5e4b1d9 commit 4c90dfc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ The command-line tool is packaged a Java JAR file and can be run via the `robot`
1. Download the `robot.jar` file from the [latest release](https://github.com/ontodev/robot/releases/latest).
2. Save the [ROBOT batch script](https://github.com/ontodev/robot/raw/master/bin/robot.bat).
- Make sure this is saved as `.bat` and not `.bat.txt`
- OR enter `"java %ROBOT_JAVA_ARGS% -jar %~dr0robot.jar %*" | out-file robot.bat -encoding utf8` in the same directory as `robot.jar` to create the batch script.
- OR in [PowerShell](https://learn.microsoft.com/powershell/), run `"java %ROBOT_JAVA_ARGS% -jar %~dp0robot.jar %*" | out-file robot.bat -encoding utf8` in the same directory as `robot.jar` to create the batch script.
- Note that the above command requires PowerShell version 6 or later: previous versions will write a Unicode byte order mark (BOM) to the file, which breaks the command.
3. Put both files on your [system PATH](https://en.wikipedia.org/wiki/PATH_(variable)) in the same directory.
- this could be `C:\Windows\`
- OR [update your PATH](https://docs.oracle.com/javase/tutorial/essential/environment/paths.html) to include the new directory.
Expand Down

0 comments on commit 4c90dfc

Please sign in to comment.