English
Source / code snippets

Reading Link Lnk Shortcut Verknüpfung

 

Jörg
Sellmeyer

Def Desktop(0) ReadIni$("Hkey_1","Software\Microsoft\windows\CurrentVersion\Explorer\Shell Folders","Desktop")
Def StartMenueProgramme(0) ReadIni$("Hkey_1","Software\Microsoft\windows\CurrentVersion\Explorer\Shell Folders","Programs")

Proc ReadLinkPath

    Parameters Path$
    Declare Pos&,Size&
    Assign #15,Path$
    Openrw #15
    Size&=GetFileSize(#15)
    Declare Link#
    Dim Link#,Size&
    BlockRead(#15,Link#,0,Size&)
    Closerw #15
    Pos&=MemPos(Link#,MemPos(Link#,0,":\\") + 1,":\\") + MemPos(Link#,0,":\\")
    Path$=String $(Link#,Pos&)
    Dispose Link#
    Return Path$

ENDPROC

ChDir Desktop()
Var LinkFile$ = Desktop() + "\\" + Findfirst$("*.lnk")
Print LinkFile$
Print ReadLinkPath(LinkFile$)
LinkFile$ = StartMenueProgramme() + "\\Zubehör\\Unterhaltungsmedien\\windows Media Player.lnk"
Print LinkFile$
Print ReadLinkPath(LinkFile$)
WaitInput
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
11/06/11  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

5.762 Views

Untitledvor 0 min.
Heiko Dix10/30/23
Walter11/09/22
p.specht11/21/21
R.Schneider11/20/21
More...

Themeninformationen

this Topic has 1 subscriber:

Jörg Sellmeyer (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie