PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
DeleteShortcut (Function)
In French: SupprimeRaccourci
Deletes a shortcut previously created by CreateShortcut from the Windows desktop, from the "Start" menu of Windows or from a specific directory.
Example
// Creates the "Test" shortcut for the "C:\Test\Test.exe" program
// on the desktop, with Ctrl-Alt-A as keyboard shortcut
CreateShortCut(shortcutDesktop, "Test", "C:\Test\Test.exe", "", swsNormal, "A")
...
DeleteShortCut(shortcutDesktop, "Test")
// Create the shortcut in "Start/Programs/Accessories"
CreateShortCut(shortcutProgram, "Test", "C:\Test\Test.exe", "Accessories", swsNormal, "A")
...
DeleteShortCut(shortcutProgram, "Test")
Syntax
<Result> = DeleteShortCut(<Location> , <Name> [, <Path>])
<Result>: Boolean
  • True if the shortcut was deleted,
  • False if a problem occurred.
<Location>: Integer constant
Relative location of the shortcut path:
shortcutDesktop
(Default value)
Shortcut on the Windows desktop.
In Windows Vista, the application that deletes the shortcut must have an administrator manifest.
Versions 22 and later
shortcutUserDesktop
New in version 22
shortcutUserDesktop
shortcutUserDesktop
Shortcut on the Windows desktop for the current user of the computer.
Versions 22 and later
shortcutStartup
New in version 22
shortcutStartup
shortcutStartup
Shortcut in the "Start .. Programs .. Startup" menu of Windows for all the users of the computer.
Versions 22 and later
shortcutUserStartup
New in version 22
shortcutUserStartup
shortcutUserStartup
Shortcut in the "Start .. Programs .. Startup" menu of Windows for the current user of the computer.
Versions 22 and later
shortcutStart
New in version 22
shortcutStart
shortcutStart
Shortcut in the "Start" menu of Windows for all the computer users.
Versions 22 and later
shortcutUserStart
New in version 22
shortcutUserStart
shortcutUserStart
Shortcut in the "Start" menu of Windows for the current user of the computer.
shortcutQuickLaunchShortcut in the quick launch bar (Windows 98 and later).
shortcutFreeShortcut in the directory specified by <Path>.
shortcutProgramShortcut in the "Start .. Programs" menu of Windows.
In Windows Vista (and higher), the application removing the shortcut must have an administrator manifest.
Versions 22 and later
shortcutUserProgram
New in version 22
shortcutUserProgram
shortcutUserProgram
Shortcut in the "Start .. Programs" menu of Windows for the current user of the computer.
<Name>: Character string
Name of shortcut.
<Path>: Optional character string
Directory relative to the <Location> from where the shortcut must be deleted. If <Location> = shortcutFree, the path is absolute.

If this parameter is not specified or if it corresponds to an empty string (""), the shortcut will be deleted from the specified <Location>.
Components
WINDEVReports and Queries wd230std.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment