Crates.io | rlnk |
lib.rs | rlnk |
version | 0.1.7 |
source | src |
created_at | 2021-08-02 02:24:50.1857 |
updated_at | 2021-08-04 01:43:15.511003 |
description | create windows shortcuts (lnk files) |
homepage | |
repository | https://github.com/dobefore/rlnk.git |
max_upload_size | |
id | 430208 |
size | 62,982 |
Add this to your Cargo.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.