TL;DR : I need a piece of code that can identify the "bit" of windows and puts it in a variable called "bit", without any user input.
Currently, I am just using:
set /P choice=32 bit system? [Y/N]
if /I "%choice%" EQU "Y" (
:: 32 bit code
) else (
:: 64 bit code
)
But, I want something to identify if a user is using a 32/64 bit system no matter if they are running a 32/64 bit command prompt or the bit of there computer. In the post here there answer only states how to do it if you run the correct bit version of CMD.
Compo, a user on the site, helped me in the past with identifying what version of windows a user is running which reduced the number of user inputs a lot; however, I still haven't found a clean solution for the "bit" of windows.