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, at 11:06 AM, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I’ve been using the following code to detect whether I’m running on a 64-bit 
> Windows OS for some time now. I think the code came from a tech tip. Anyway, 
> I just had a computer reported today where this code said the computer was 
> 64-bit, but it was actually only  32-bit.
> 
>       LAUNCH EXTERNAL PROCESS("cmd.exe /C set | findstr 
> ProgramFiles(x86)";$tIn;$tOut;$tError)
>       If (Position("ProgramFiles(x86)";$tOut)=0)
>               $fIs64Bit:=False  // x86 variable not found
>       Else   // x86 variable found
>               $fIs64Bit:=True
>       End if 
> 
> Just wondering if anyone else is using this and has run into the same issue? 
> Any workarounds?
> 
> Thanks.
> 
> --
> Cannon.Smith
> Synergy Farm Solutions Inc.
> Hill Spring, AB Canada
> 403-626-3236
> <can...@synergyfarmsolutions.com>
> <www.synergyfarmsolutions.com>

--
Julio Carneiro
jjfo...@gmail.com



**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to