Thread: Detection of OS
View Single Post
Old 25th May 2009, 09:33   #17  |  Link
juGGaKNot
Registered User
 
juGGaKNot's Avatar
 
Join Date: Feb 2008
Posts: 733
Quote:
Originally Posted by squid_80 View Post
No, %windir% should include the drive letter at the start.

Also, IsWow64Process() is not suitable to detect if the OS is 64-bit, it only reports if the current process is 64-bit. This is noted on the IsWow64Process MSDN page.
I see, i only tested 32 bit so far

guess i will go with

set x264=32
if exists "%Windir%\SysWOW64" GOTO X1
GOTO END
:x1
set x264=64
GOTO END
:END

start "encode" /b /low /max /wait "%mypath%\bin\%x264%.exe"

But what if it is dual boot and the folder is there but he is running on the 32 bit ?
juGGaKNot is offline   Reply With Quote