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
<[email protected]>
<www.synergyfarmsolutions.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:[email protected]
**********************************************************************