• Re: find out if TLC is running on 64 bit Windows (to call on screen? ke

    From Gerald Lester@21:1/5 to Robert Heller on Tue Jul 5 14:41:59 2022
    On 7/5/22 14:25, Robert Heller wrote:
    At Tue, 5 Jul 2022 20:34:47 +0200 Christian Gollwitzer <[email protected]> wrote:


    Am 05.07.22 um 19:36 schrieb Harald Oehlmann:

    Dear TCL'ers,

    how may I find out, if my 32 bit wish is running on a 64 or 32 bit
    Windows OS?

    What I found by tcl_platform and platform::identify is, that a 32 bit
    system is presented.

    Is there any trick ? TWAPI ?

    If "C:\Program Files (x86)" exists -> 64 bit ?


    This is IMHO not guaranteed to exist. But you can look for the WOW64
    folder. My Windows is not running currently, but IIRC then you look into
    C:\Windows (there is some %% magic thing for the correct path) and then
    you'll see if the WOW-Folder exists

    https://en.wikipedia.org/wiki/WoW64

    If that doesn't work, you could compile a small program for 64bit (hello
    World) and try to execute it.

    Christian

    I take it that there isn't a program like 'uname -m' available under MS-Windows? That would be the goto command I would use under any flavor of Linux (also works on MacOSX!).

    Look at the contents of ::tcl_platform !!!!!


    --
    +----------------------------------------------------------------------+
    | Gerald W. Lester, President, KNG Consulting LLC |
    | Email: [email protected] | +----------------------------------------------------------------------+

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Christian Gollwitzer@21:1/5 to All on Tue Jul 5 21:55:04 2022
    Am 05.07.22 um 21:41 schrieb Gerald Lester:
    On 7/5/22 14:25, Robert Heller wrote:
    At Tue, 5 Jul 2022 20:34:47 +0200 Christian Gollwitzer
    <[email protected]> wrote:


    Am 05.07.22 um 19:36 schrieb Harald Oehlmann:

    Dear TCL'ers,

    how may I find out, if my 32 bit wish is running on a 64 or 32 bit
    Windows OS?

    What I found by tcl_platform and platform::identify is, that a 32 bit
    system is presented.

    Is there any trick ? TWAPI ?

    If "C:\Program Files (x86)" exists -> 64 bit ?


    This is IMHO not guaranteed to exist. But you can look for the WOW64
    folder. My Windows is not running currently, but IIRC then you look into >>> C:\Windows (there is some %% magic thing for the correct path) and then
    you'll see if the WOW-Folder exists

        https://en.wikipedia.org/wiki/WoW64

    If that doesn't work, you could compile a small program for 64bit (hello >>> World) and try to execute it.

        Christian

    I take it that there isn't a program like 'uname -m' available under
    MS-Windows? That would be the goto command I would use under any
    flavor of
    Linux (also works on MacOSX!).

    Look at the contents of ::tcl_platform !!!!!


    I'm not sure this answers the question Harald has. When you compile a 32
    bit Tclsh and run it under Win64, tcl_platform still shows everything
    for 32 bit - or not? Harald wants to know if the 32bit binary runs on a
    native 32 bit Windows or via WoW64 on Windows64.

    Christian

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Robert Heller@21:1/5 to [email protected] on Tue Jul 5 14:25:17 2022
    At Tue, 5 Jul 2022 20:34:47 +0200 Christian Gollwitzer <[email protected]> wrote:


    Am 05.07.22 um 19:36 schrieb Harald Oehlmann:

    Dear TCL'ers,

    how may I find out, if my 32 bit wish is running on a 64 or 32 bit
    Windows OS?

    What I found by tcl_platform and platform::identify is, that a 32 bit system is presented.

    Is there any trick ? TWAPI ?

    If "C:\Program Files (x86)" exists -> 64 bit ?


    This is IMHO not guaranteed to exist. But you can look for the WOW64
    folder. My Windows is not running currently, but IIRC then you look into C:\Windows (there is some %% magic thing for the correct path) and then you'll see if the WOW-Folder exists

    https://en.wikipedia.org/wiki/WoW64

    If that doesn't work, you could compile a small program for 64bit (hello World) and try to execute it.

    Christian

    I take it that there isn't a program like 'uname -m' available under MS-Windows? That would be the goto command I would use under any flavor of Linux (also works on MacOSX!).




    --
    Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
    Deepwoods Software -- Custom Software Services
    http://www.deepsoft.com/ -- Linux Administration Services
    [email protected] -- Webhosting Services

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)