General information
Category:
Windows API functions
>The lnkfiles.dll comes with an old style windows help file. All of the functions are documented in VFP syntax. I got very tired of translating from VB with some of other help files that are available for dll calls, so...< g >
>
>You're quite welcome. If he hasn't already, perhaps Ed Rauh will fill you in on the WSH side. Both my dll and the WSH have their place. Depends on the usage circumstances.
George,
Got it working... Thanks. Didn't take long.
hWnd = 0
lpszlinkname = "C:\WINDOWS\DESKTOP\WM PATCH 6.LNK"
DECLARE INTEGER GetCmndLineInfo IN LNKFILES.DLL;
INTEGER hWnd, STRING @lpszLinkName, STRING @lpszPath
* 260 is the current value of MAX_PATH
lcbuffer = SPACE(260)
* lclinkfile is the file name of the link file
lcLinkFile = "C:\WINDOWS\DESKTOP\WM PATCH 6.LNK"
lnresult = GetCmndLineInfo(0, @lclinkfile, @lcbuffer)
lccmndline = LEFT(lcbuffer, lnresult)
IF FILE(LCCMNDLINE)
DELETE FILE (LCCMNDLINE)
ENDIF
Robert
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only