English
Source / code snippets

Reading way link

 

Jörg
Sellmeyer

of Jörg Sellmeyer to disengaged Disposal
Def Desktop(0) ReadIni$("Hkey_1","SoftwareMicrosoftWindowsCurrentVersionExplorerShell Folders","Desktop")

Proc ReadLinkPath

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

ENDPROC

ChDir Desktop()
Var lnk$ = Desktop() + "\" + FindFirst$("*.lnk")
Print lnk$
Print ReadLinkPath(lnk$)
WaitInput
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
08/20/08  
 



for Frank what?
 
08/20/08  
 




Jörg
Sellmeyer
If it helps. then having More Time for XIDE
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
08/20/08  
 




Frank
Abbing
Bräuchte the in Assembler...
 
08/20/08  
 




Jörg
Sellmeyer
Wennde the have, kannste the too time poses
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
08/20/08  
 




Frank
Abbing
if i remember rightly, there too a Solution without Registry. thereafter watts I tonight first search. Dateizugriffe make everything immediate slow.
 
08/20/08  
 



here becomes now really no performance demanded... seldom moving someone 50.000 LNK-Files a Listbox - in the hope, that these operation only a second last becomes.

I can but present the Jörgs code usually functions - vlt. another small Sicherheitsprüfung install.
 
08/20/08  
 




Frank
Abbing
The chance isn't high, but exists!
Have in the others Thread yet larger ones detriments aufgelistet:  [...] 
 
08/20/08  
 



Frank Abbing
The chance isn't high, but exists!
Have in the others Thread yet larger ones detriments aufgelistet.


with such testify on the best still The Thread-ID or URL indicate there later once nobody More know can whom Thread You meant having could and the Hineinkopieren the URL seldom vastly hoisted means. (ultimately konvertiert the community URLs automatically in left, too without the one with ifbbs or htmls umsich throwing must.)
 
08/20/08  
 




Frank
Abbing
Yes, i was not yet so far. You must too always badger...
 
08/20/08  
 



there help presumably too no (ca.) 8.500KM distance.
 
08/20/08  
 




Jörg
Sellmeyer
it could Yes time any, The over this Thread stumbling, short testing and the Result communicating.
D:DatenProfanVerknüpfungen
Def Desktop(0) ReadIni$("Hkey_1","SoftwareMicrosoftWindowsCurrentVersionExplorerShell Folders","Desktop")
Def StartMenueProgramme(0) ReadIni$("Hkey_1","SoftwareMicrosoftWindowsCurrentVersionExplorerShell Folders","Programs")

Proc ReadLinkPath

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

ENDPROC

Declare lnk$
ChDir StartMenueProgramme()
AddFiles *"*.lnk"
Window 0,0 - %maxx,%maxy

WhileLoop %getcount

    lnk$ = ReadLinkPath(ListBoxItem$(&Loop))
    FindFirst$(lnk$)
    Print lnk$,%ioresult

Wend

WaitInput

by me comes though already one Error out, means well not so optimal
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
08/20/08  
 




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

23.159 Views

Untitledvor 0 min.
E.T.06/12/23
Uwe Lang01/29/22
Sven Bader09/24/21
Thomas Freier01/26/13
More...

Themeninformationen



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