You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: