Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

WindowsShortCutMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Windows Shortcuts MBS Win Plugin No Yes No Yes, Windows only No
Function: A class to create shortcuts on Windows.
dim w as WindowsShortCutMBS

w = new WindowsShortCutMBS

w.Arguments = ""
w.Command = 3
w.Icon = specialfolder.system.child("shell32.dll").absolutepath
w.iconID = 41
w.Location = SpecialFolder.Desktop.child("A new link to explorer.lnk").absolutepath
w.Target = SpecialFolder.Windows.child("explorer.exe").absolutepath
w.WorkingDirectory = volume(0).absolutepath

if w.CreateShortCut then
msgBox "Shortcut created."
msgBox "Failed to create shortcut."
end if

Feedback, Comments & Corrections

This class has no sub classes.

Some examples which use this class:

The items on this page are in the following plugins: MBS Win Plugin.

WindowsSerialPortsMBS   -   WindowsSystemTrayMBS

MBS Xojo blog