VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Create A Windows Shortcut With 9 Lines Of Code

TfAv1228  (1 Submission)   Files/File Controls/Input/Output   Beginner   Wed 3rd February 2021

A Function To Create Windows Shorcut
.URL for hyperlinks
.LNK for anything else
There are many other variables that can be implemented besides just Name where it points hotkey and description

Inputs
here is an examle of the code this will work with Windows XP CreateShortcut("C:\CMD.lnk", "C:\Windows\System32\CMD.exe", "CTRL+D", "Shortcut to CMD.exe") Would create a shortcut to the C:\Windows\System32\CMD.exe and place it at C:\CMD.lnk with a hotkey of CTRL+D and a description of Shortcut to CMD.exe

Rate Create A Windows Shortcut With 9 Lines Of Code (3(3 Vote))
Create A Windows Shortcut With 9 Lines Of Code.bas

Create A Windows Shortcut With 9 Lines Of Code Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters