hi parsiya,
thank you for providing such a good tool to handle the Windows Shortcut file.
but when I am trying to get the target path of a lnk file with Chinese characters in file name, I got the unrecognizable characters in target path.
would you like to have a look of this?
code:
package main
import (
"fmt"
lnk "github.com/parsiya/golnk"
)
func main() {
Lnk, err := lnk.File("./第一本docker书.pdf.lnk")
if err != nil {
panic(err)
}
// Path to the target file is usually in LinkInfo.LocalBasePath.
fmt.Println("BasePath", Lnk.LinkInfo.LocalBasePath)
}
output:
go run .\main.go
BasePath D:\Tele\files\��һ��docker��.pdf
hi parsiya,
thank you for providing such a good tool to handle the Windows Shortcut file.
but when I am trying to get the target path of a lnk file with Chinese characters in file name, I got the unrecognizable characters in target path.
would you like to have a look of this?
code:
output:
go run .\main.go
BasePath D:\Tele\files\��һ��docker��.pdf