Kondro Posted December 21, 2011 Share Posted December 21, 2011 Im trying to write into a script logic to determine if the current OS is Windows 7 x64 vs. any other operating system. It seems the Windows 7 build numbers are the same for x86 and x32 (7600 or 7601 for SP1) Anyone know how I can accomplish this? Thanks. Link to comment Share on other sites More sharing options...
Chimaera Posted December 21, 2011 Share Posted December 21, 2011 (edited) Try this If @CPUArch = "X86" Then $CPUArch = "32-bit" ElseIf @CPUArch = "X64" Then $CPUArch = "64-bit" EndIf MsgBox(0, "OS Test", $CPUArch) Edited December 21, 2011 by Chimaera If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted December 21, 2011 Moderators Share Posted December 21, 2011 Hi, Kondro. Try this to get you started: MsgBox(0, "", @OSVersion & " " & @OSArch) There is plenty more in the helpfile "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Kondro Posted December 21, 2011 Author Share Posted December 21, 2011 thank you all! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now