$ESCAPECHARS ON
$TYPECHECK ON
$INCLUDE "RAPIDQ.INC"
DECLARE FUNCTION fCreateShellLink LIB "STKIT432.DLL" ALIAS "fCreateShellLink"(BYVAL _
lpstrFolderName AS STRING, BYVAL lpstrLinkName AS STRING, BYVAL _
lpstrLinkPath AS STRING, BYVAL lpstrLinkArgs AS STRING) AS LONG
DEFINT lReturn
DEFSTR addTo, addName, addWhat, nullString
nullString = ""
addTo = "..\\..\\Bureau"
addName = "Shortcut to Calculator"
addWhat = "c:\\Windows\\Calc.exe"
nullString = ""
lReturn = fCreateShellLink(addTo, addName, addWhat, nullString)
PRINT "Result : 1=OK/ 0=FAILURE, fCreatreShellLink_Return=";STR$(lReturn)
DEFSTR sExit
INPUT "\n\n CR to QUIT \n\n", sExit
Application.Terminate
END
|