Skip to content

Commit 42dee2b

Browse files
Update README.md
Fixed an example code
1 parent a6b53a2 commit 42dee2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ What is not supported (yet):
1919
The composition of classes reflect the data layout described in the format [specification](http://msdn.microsoft.com/en-us/library/dd871305.aspx), so it's recommended to take a look there if you are looking for something specific or want a detailed explanation of flags and constants. Otherwise, you can use `ShellLinkHelper` class that provides methods for some general tasks.
2020

2121
### Examples
22-
The easiest way to create a link with default parameters: `ShellLinkHelper.createLink("targetfile", "linkfile.lnk")`
22+
The easiest way to create a link with default parameters: `ShellLinkHelper.createLink("C:\\path\\to\\targetfile", "linkfile.lnk")`
2323

2424
The following example shows creation of a link for a local .bat file and sets up a working directory, icon and console font. Note that, the path has to be absolute and the drive letter has to be a separate parameter to enforce Windows-style paths. For simplicity, this example uses `java.nio.file.Path` to prepare the path assuming it runs on Windows. Take a look at [Examples.java](https://github.com/DmitriiShamrikov/mslinks/blob/master/test/mslinks/Examples.java) for a Linux compatible example.
2525
```java

0 commit comments

Comments
 (0)