- a Wrapper for Shortcut.exe by Optimum X.
- used to create Windows shortcuts(lnk files).
- Ispired by A Node.js API for shortcut.exe
Add this to your Cargo.toml
:
toml
[dependencies]
rlnk = "0.1.7"
use rlnk::ShellLink;
let target=r"C:\Users\Admin\Desktop\new aa\qiuqiu.exe";
let lnk=r"C:\Users\Admin\Desktop\qiuqiu.lnk";
let mut sl=ShellLink::new();
sl.create_lnk(target,lnk);
Shortcut.exe as an external exec_file which should be written to Windows Temp directory is executed with parameters to create windows shortcuts.