0.1.7 |
|
---|---|
0.1.6 |
|
#5 in #lnk
52 downloads per month
63KB
90 lines
Contains (DOS exe, 58KB) src/bin/Shortcut.exe
rlnk
- a Wrapper for Shortcut.exe by Optimum X.
- used to create Windows shortcuts(lnk files).
- Ispired by A Node.js API for shortcut.exe
Usage
Add this to your Cargo.toml
:
[dependencies]
rlnk = "0.1.7"
example code
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);
How it works
Shortcut.exe as an external exec_file which should be written to Windows Temp directory is executed with parameters to create windows shortcuts.
lib.rs
:
example
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).unwap();