Ensure there is Always a Shortcut to your Application on the Desktop

Category:
Files and Directories
Type:
Snippets
Difficulty:
Beginning
Author:
m.posseth

Version Compatibility: Visual Basic 6

More information:
I wanted to be sure that a user can always find my program even if they deleted the shortcut. So this litle piece of code makes sure that there is a shortcut on the user's desktop. Requires Windows Scripting Host.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: