Is there a good way to generate shortcuts in pure Rust

Hello,
I'm need to create / read windows .lnk files but I can't find any working crate in rust.
This one is able to read the correctly the link but doesn't support write
https://docs.rs/parselnk/0.1.0/parselnk/

This one is able to create a file but the file doesn't work the target field is empty in the written file.
https://docs.rs/lnk/0.3.0/lnk/

If someone has a working example of this lib or another solution this would be very nice.

Thanks for helping me.

Are you looking for std::os::windows::fs::symlink_file - Rust and std::os::windows::fs::symlink_dir - Rust ?

As for reading I suppose std::fs::FileType - Rust is cross-platform.

No, I want to generate lnk files (Icons, Working dir, target, args...)

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.