Skip to content

Class CSharpLib.Shortcut

Samuel edited this page May 16, 2021 · 1 revision

The purpose of this class is for manipulating shortcut files.

First, create a class instance:

using CSharpLib;

Shortcut s = new Shortcut();

Now that you have an instance, you can use the defined methods. Below are the current methods and their functions:

  • GetTargetPathofShortcut(); - Returns the path that the specified shortcut file (.lnk) points to
  • CreateShortcutToFile(); - Creates a shortcut that points to a file
  • CreateShortcutToFolder(); - Creates a shortcut that points to a folder

NOTE: For simplicity, more details are given in the class documentation.