https://github.com/rasa/mklnk
Make .lnk files
https://github.com/rasa/mklnk
Last synced: 5 months ago
JSON representation
Make .lnk files
- Host: GitHub
- URL: https://github.com/rasa/mklnk
- Owner: rasa
- License: mit
- Created: 2015-02-18T20:48:35.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-21T03:59:08.000Z (about 11 years ago)
- Last Synced: 2025-05-21T00:35:42.800Z (about 1 year ago)
- Language: Makefile
- Homepage:
- Size: 238 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# mklnk [![Flattr this][flatter_png]][flatter]
Make .lnk files.
## Usage
````
mklnk [options] target.exe [link.lnk]
target.exe Name of target, use quotes if it contains spaces
link.lnk Name of link, use quotes if it contains spaces
Default is to use the target's name
Options (defaults in parentheses):
-l | --link-name version_info Use 'version_info' data in target.exe for the
link name: ProductName, FileDescription, etc.
-a | --arguments "arg1 arg2" Command arguments if any, use quotes if needed
-c | --comment "a comment" Link comment, use quotes if needed (none)
-d | --directory Startup directory for shortcut (none)
-s | --show Show: 1/normal, 2/maximized, 7/minimized (1)
-i | --icon ex.ico .ico or .dll containing icon to display
(default is to use icon 0 in target.exe)
-n | --icon-no index Integer index of icon in icon file (0)
-t | --target-directory dir Create link in directory 'dir' (.)
-v | --version Show version and copyright and quit
-? | --help Show this help message and quit
````
## Examples
````batch
mklnk -a "%HOMEDRIVE%%HOMEPATH%" %SystemRoot%\system32\cmd.exe "Command Prompt"
mklnk -a "--login -i" -i C:\cygwin\cygwin.ico -s7 C:\cygwin\bin\bash.exe "Bash"
mklnk -a /e,"%USERPROFILE%\Desktop" c:\windows\explorer.exe "%USERPROFILE%\Application Data\Microsoft\Internet Explorer\Quick Launch\Desktop"
mklnk -a "%USERPROFILE%\My Documents\todo.txt" c:\windows\system32\notepad.exe "%USERPROFILE%\Start Menu\Programs\Startup\To Do List"
rem create a link named "Windows Backup Utility.lnk":
mklnk -l FileDescription c:\windows\system32\ntbackup.exe
````
## Verify a Release
To verify a release, download the .zip, .sha256, and .asc files for the release
(replacing mklnk-1.4-win32.zip with the release you are verifying):
````
$ wget https://github.com/rasa/mklnk/releases/download/v1.4/mklnk-1.4-win32.zip{,.sha256,.asc}
````
Next, check that sha256sum reports "OK":
````
$ sha256sum -c mklnk-1.4-win32.zip.sha256
mklnk-1.4-win32.zip: OK
````
Lastly, check that GPG reports "Good signature":
````
$ gpg --keyserver hkps.pool.sks-keyservers.net --recv-key 0x105a5225b6ab4b22
$ gpg --verify mklnk-1.4-win32.zip.asc mklnk-1.4-win32.zip
gpg: using RSA key 0xFF914F74B4BB6EF3
gpg: Good signature from "Ross Smith II " [ultimate]
...
````
## Contributing
To contribute to this project, please see [CONTRIBUTING.md](CONTRIBUTING.md).
## Bugs
To view existing bugs, or report a new bug, please see [issues](../../issues).
## Changelog
To view the version history for this project, please see [CHANGELOG.md](CHANGELOG.md).
## License
This project is [MIT licensed](LICENSE).
## Contact
This project was created and is maintained by [Ross Smith II][] [![endorse][endorse_png]][endorse]
Feedback, suggestions, and enhancements are welcome.
[Ross Smith II]: mailto:ross@smithii.com "ross@smithii.com"
[flatter]: https://flattr.com/submit/auto?user_id=rasa&url=https%3A%2F%2Fgithub.com%2Frasa%2Fmklnk
[flatter_png]: http://button.flattr.com/flattr-badge-large.png "Flattr this"
[endorse]: https://coderwall.com/rasa
[endorse_png]: https://api.coderwall.com/rasa/endorsecount.png "endorse"