English
Source / code snippets

detect programs directory

 
programs directory detect
CompileMarkSeparation
getdir.programs{//Gibt als String den Pfad des Programmverzeichnisses des Users wieder.

    string s=space$(999)// oder max_path = 260
    bool r=external("Shell32","SHGetSpecialFolderPathA",0,ADDR(s),38,0)
    return if(s=="", readini$("HKEY_2","SOFTWARE\\Microsoft\\Windows\\CurrentVersion", "ProgramFilesDir"),if(r==true,trim$(s)+"\\",""))

}
>
 
01/13/13  
 




Julian
Schmidt
working!

with reinen XProfan
CompileMarkSeparation
CLS
print getprogramsdir()
Waitinput

Proc getprogramsdir

    Var s$=space$(999)
    Var r&=external("Shell32","SHGetSpecialFolderPathA",0,ADDR(s$),38,0)
    return if(s$="", readini$("HKEY_2","SOFTWARE\\Microsoft\\Windows\\CurrentVersion", "ProgramFilesDir"),if(r&=1,trim$(s$)+"\\",""))

E
 
XProfan X2
Win7 Professional, SP1, AMD FX(tm)-8350 Eight-Core Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
01/13/13  
 



If you something like interested... having to langer Time time ne Unit manufactured: [...] 
circa Dateihandles and C-Style-Dateifunktionsnamen for XProfan herzubilden as
it with reinem XProfan yet no dynamic Dateihandles given.
 
01/13/13  
 



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.641 Views

Untitledvor 0 min.
Gast.081510/03/24
Erhard Wirth06/14/24
Member 862464105/12/24
Stringray01/05/22
More...

Themeninformationen

this Topic has 2 subscriber:

iF (2x)
Julian Schmidt (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