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!).
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 !!!!!
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
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 716 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 52:28:47 |
| Calls: | 12,115 |
| Calls today: | 6 |
| Files: | 15,010 |
| Messages: | 6,518,589 |
| Posted today: | 1 |