Platforms to show: All Mac Windows Linux Cross-Platform
/Win/Windows Shortcuts/File Shortcut
Required plugins for this example: MBS Util Plugin, MBS Win Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Win/Windows Shortcuts/File Shortcut
This example is the version from Thu, 31th Jul 2019.
Project "File Shortcut.xojo_binary_project"
MenuBar Menu
MenuItem UntitledMenu3 = ""
MenuItem UntitledMenu2 = "File"
MenuItem FileQuit = "Quit"
MenuItem UntitledMenu0 = "Edit"
MenuItem EditUndo = "Undo"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "Cut"
MenuItem EditCopy = "Copy"
MenuItem EditPaste = "Paste"
MenuItem EditClear = "Clear"
End MenuBar
Class App Inherits Application
EventHandler Sub Open()
dim w as WindowsShortCutMBS
w=new WindowsShortCutMBS
w.Arguments="c:"
w.Command=3
w.Icon=WindowsSystemFolderMBS.child("shell32.dll").NativePath
w.iconID=41
w.Location=SpecialFolder.Desktop.child("A new link to explorer.lnk").NativePath
w.Target=WindowsFolderMBS.child("explorer.exe").NativePath
w.WorkingDirectory=volume(0).NativePath
if w.CreateShortCut then
msgBox "Created shortcut."
else
msgBox "Failed to create shortcut."
end if
quit
End EventHandler
End Class
End Project
See also:
- /Win/Windows Console
- /Win/Windows DDE/DeleteGroup
- /Win/Windows Hot Key
- /Win/Windows Locale Information
- /Win/Windows Shell
- /Win/Windows Shortcuts/Resolve Shortcut
- /Win/Windows Speech/Windows Speech with 4 windows
- /Win/Windows Startmenu Items
- /Win/Windows System Tray with Icon file/Windows System Tray with Icon file
- /Win/Windows VM Statistics
The items on this page are in the following plugins: MBS Win Plugin.