Page 1 of 1

How to detect operating system x86/x64

PostPosted:30 Apr 2011, 20:03
by acen2006
Here is an example batch file which is used to detect operating system architecture ie x86 or x64. Credit for this method should goto eXPerience. Please dont be fooled into thinking that nOak come up with this idea.

Code: Select allIF EXIST %WINDIR%\SysWOW64 GOTO x64
IF NOT EXIST %WINDIR%\SysWOW64 GOTO x86

:x64
start /wait x64\Setup.exe /VERYSILENT /NORESTART
GOTO Clean

:x86
start /wait x86\Setup.exe /VERYSILENT /NORESTART
GOTO Clean

:Clean
RD "%Temp%\afolder" /S /Q
RD "%Temp%\ztmp" /S /Q
Exit

Re: How to detect operating system x86/x64

PostPosted:30 Apr 2011, 20:07
by Angel
We all know better Acen. Is eXPerience still up to stuff?

This script was probably around before the kid was born.

Re: How to detect operating system x86/x64

PostPosted:30 Apr 2011, 20:10
by acen2006
BigB wrote:Is eXPerience still up to stuff?


Yes eXPerience is still at the same forum.

Re: How to detect operating system x86/x64

PostPosted:30 Apr 2011, 23:24
by Neuropass
I knew about that little trick. I had opened a topic about it while back on his forum. It should be still there.

Damn noak still stealing eh?

Re: How to detect operating system x86/x64

PostPosted:01 May 2011, 02:16
by Giin70
Thanks Acen.

Ok boys lets play nice ~


:cool4: :pir4: