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 <[email protected]> 
> wrote:
> 
> 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
> [email protected]
> 
> 
> 
> 
>> On Apr 23, 2018, at 2:04 PM, Julio Carneiro via 4D_Tech 
>> <[email protected]> wrote:
>> 
>> 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
> 
> **********************************************************************
> 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]
> **********************************************************************

**********************************************************************
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]
**********************************************************************

Reply via email to