Hi,
There are Winbuilder Fixed Variables for retrieving info from the current OS, like %WindowsDir%, %UserName% and %Day% for example. I thought that amongst these there was a Winbuilder Variable for the 'Windows Version' of the current OS, and maybe some others...???
Right now, I'd like one for the %Processor_Architecture% of the OS. Is there one?
If not, how to do it? I would rather not have Winbuilder search for some unique file or check the registry. Can the variable somehow pass from cmd.exe to a Winbuilder Custom Variable?
Thanks
Get %Processor_Architecture% into WinBuilder?
Started by
allanf
, Apr 14 2008 06:31 AM
3 replies to this topic
#1
Posted 14 April 2008 - 06:31 AM
#2
Posted 14 April 2008 - 09:10 AM
Yes, there is a way.
Environment variables can be found at
Use a command like
http://www.boot-land...ax.html#RegRead
Environment variables can be found at
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Environment
Use a command like
RegRead,HKLM,"SYSTEM\ControlSet001\Control\Session Manager\Environment","PROCESSOR_ARCHITECTURE","%Processor_Architecture%"
http://www.boot-land...ax.html#RegRead
#3
Posted 14 April 2008 - 11:24 AM
Yes, there is a way.
...
Thanks Nuno,
I am reluctant to use Registry commands because I have made (and seen) mistakes in the past.
However, the advice you have given looks safe. ...
I'll try it in a while. I've hit some other snags with the new Windows AIK.
BTW, this question now seems to be in the wrong forum. Perhaps, better would be 'Winbuilder Scripting Help.'
#4
Posted 14 April 2008 - 01:34 PM
Will move to the "developer notes" section since it deals with scripting techniques.
Would nice to gather them there so that other people can see how this can be done.
Would nice to gather them there so that other people can see how this can be done.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users