Page 1 of 1 1
Topic Options
#201936 - 2011-04-24 04:57 PM New Macro - @ProgramFilesX86
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
Using a mixed environment of 32 and 64bit machines cause quite a headache when trying to determine the correct "Program Files" directory. I would like to see a new macro called @programfilesx86.

I have been using the following function to resolve the correct 32bit folder regardless of the OS's bit version.

 Code:
function programfilesx86()
  $programfilesx86=iif(@onwow64,"%programfiles(x86)%","%programfiles%")
endfunction

Top
#202833 - 2011-08-11 09:17 PM Re: New Macro - @ProgramFilesX86 [Re: Allen]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
In addition to Programfilesx86, I would also like to suggest the following as new macros too...

 Code:
function HKLMSoftware32
  $HKLMSoftware32="HKLM\Software" + iif(@onwow64,"\WOW6432Node","")
endfunction

function System32()
  $System32="%systemroot%\" + iif(@onwow64,"syswow64","system32") 
endfunction


It seems like I use these all the time now, when trying to work with older 32bit systems along with the newer 64bit ones.

Top
Page 1 of 1 1


Moderator:  Lonkero, ShaneEP, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 557 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.075 seconds in which 0.041 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org