| Home | All functions | Categories |
vuCreateLink(LONG,*CSTRING,*CSTRING,*CSTRING), Signed
Creates a Windows shortcut (link) file. Shortcuts allow programs to be started from locations such as the desktop, start menu, or other system folders. vuCreateLink supports eight default locations.
| Parameter | Data Type | Description |
|---|---|---|
| Location | LONG | Shortcut location: 1 = Desktop 2 = Start Menu 3 = Startup Folder 4 = Favorites Folder 5 = Personal Folder 6 = SendTo Options 7 = Start Menu\Programs Folder 8 = Start Menu\Programs\Administrative Tools |
| LinkName | CSTRING(64) | The display name under the shortcut icon |
| ProgramName | CSTRING(256) | Fully qualified path and filename of the program to link |
| Arguments | CSTRING(128) | Optional runtime parameters |
1 (True) on success, 0 (False) on failure.
! Example: Create a desktop shortcut
IF vuCreateLink(1, 'MyApp', 'C:\Apps\MyApp.exe', '') = 1
MESSAGE('Shortcut created on desktop')
END
| Home | All functions | Categories |