VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

create a Shelllink (also known as Shortcut) with a few lines of code

Max Christian Pohle  (9 Submissions)   Windows System Services   Beginner   Wed 3rd February 2021

It creates a shortcut and lets you define all important parameters. I have seen some examples before, but they where all too complicated for this little job. So I collected informationen and wrote this.

Inputs
for example CreateShortcut App.Path & "\Explorer.lnk", "C:\winnt\explorer.exe", "", "CTRL+SHIFT+D", "Microsoft Windows Explorer", Maximized, 0 creates a link in your applications path which calls the explorer.exe from "c:\winnt", defines CTRL+Shift+D as keycombination for it, starts the Explorer-window maximized and uses the standardicon of explorer.exe, which is 0.

Returns
Returns? The shortcut :-)

API Declarations
no APIs used, but Windows-Scriptinghost
Thats why it should run as "VB Script" as well ( with little modifications maybe :-) )

Rate create a Shelllink (also known as Shortcut) with a few lines of code (6(6 Vote))
create a Shelllink (also known as Shortcut) with a few lines of code.bas

create a Shelllink (also known as Shortcut) with a few lines of code Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters