rlnk

API - 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: toml [dependencies] rlnk = "0.1.5"

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.set_target(target); sl.create_lnk(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.