| Home | All functions | Categories |
vuCreateLinkEx(LONG,*CSTRING,*CSTRING,*CSTRING,*CSTRING,*CSTRING), Signed
Creates a Windows shortcut (link) file with extended options. This version allows specifying a working directory and a comment in addition to the parameters supported by vuCreateLink.
| 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 |
| WorkingDir | CSTRING(256) | The working directory for the program |
| 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 |
| Comment | CSTRING(128) | Optional comment (appears in shortcut properties) |
1 (True) on success, 0 (False) on failure.
! Example: Create a desktop shortcut with working directory and comment
IF vuCreateLinkEx(1, 'C:\Apps\Data', 'MyApp', 'C:\Apps\MyApp.exe', '', 'My Application Shortcut') = 1
MESSAGE('Shortcut created on desktop with comment')
END
vuCreateLink() by adding WorkingDir and Comment parameters.vuCreateLink.| Home | All functions | Categories |