Re: Detecting 64-bit OS

2018-04-24 Thread Cannon Smith via 4D_Tech
Thanks Jorg and Jim. I appreciate the examples. It looks like there are lots of ways to accomplish this. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Apr 24, 2018, at 9:09 AM, Jim Hays via 4D_Tech <4d_tech@lists.4d.com>

Re: Detecting 64-bit OS

2018-04-24 Thread Jim Hays via 4D_Tech
Just in case you haven't rolled your own yet: Win32API plugin: sys_IsWow64Process(isWow64) isWoW64 = 1 means 4D is 32 bit running on 64 bit Windows. On Mon, Apr 23, 2018 at 3:12 PM, John Baughman via 4D_Tech < 4d_tech@lists.4d.com> wrote: > I test for 64bit with… > > If (Test path

Re: Detecting 64-bit OS

2018-04-23 Thread Jörg Knebel via 4D_Tech
G’day Cannon, > On 24 Apr 2018, at 24:06 AEST, Cannon Smith via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > Just wondering if anyone else is using this and has run into the same issue? > Any workarounds? Try this instead: IF ($Platform = Mac OS) $Command:="sysctl hw |grep 64bit"

Re: Detecting 64-bit OS

2018-04-23 Thread Cannon Smith via 4D_Tech
Thanks Julio, Jeff, and John. It was definitely an English computer with regular settings. From your answers, I gather that the way I was doing it was rather brittle. Registry settings sound like the best way to go forward (until v17, anyway). Thanks for your replies. I appreciate it. --

Re: Detecting 64-bit OS

2018-04-23 Thread John Baughman via 4D_Tech
I test for 64bit with… If (Test path name("C:\\Windows\\sysWoW64")=Is a folder) //64bit machine Else //32bit machine End if > On Apr 23, 2018, at 8:11 AM, Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > String matching is a bad way to do this kind of thing. > > If you

Re: Detecting 64-bit OS

2018-04-23 Thread Jeffrey Kain via 4D_Tech
String matching is a bad way to do this kind of thing. If you have a plug-in like Win32API that can read the registry, this would probably work: https://support.microsoft.com/en-us/help/556009 HTH, Jeff -- Jeffrey Kain jeffrey.k...@gmail.com > On Apr 23, 2018, at 2:04 PM, Julio

Re: Detecting 64-bit OS

2018-04-23 Thread Julio Carneiro via 4D_Tech
Cannon, I believe that code only works if the Regional Settings establish English as the main language. In other languages that folder name gets translated by Windows, so your code would fail. Was the computer that reported a failure set to French by any chance? hth julio > On Apr 23, 2018,