Guest capt doufos Posted August 25, 2005 Share Posted August 25, 2005 Hi, I am new to this scripting melarky and I am sure this is a really simple question: Basically I just need some code that will allow me to find out if and machine is running windows 2000 or XP then run the relevent file. I have already done the code for the file running so I just need the winver part. IE: What winver? If 2000 then blah blah blah If XP then blah blah blah Thanks Link to comment Share on other sites More sharing options...
trids Posted August 25, 2005 Share Posted August 25, 2005 Checkout the @OSxxxx macros in the helpfile HTH Link to comment Share on other sites More sharing options...
Guest capt doufos Posted August 25, 2005 Share Posted August 25, 2005 Checkout the @OSxxxx macros in the helpfile HTH <{POST_SNAPBACK}>Thanks I totally overlooked that!!!! Link to comment Share on other sites More sharing options...
Raindancer Posted August 25, 2005 Share Posted August 25, 2005 IE:What winver?If 2000 then blah blah blahIf XP then blah blah blahThanks <{POST_SNAPBACK}>If @OSVersion = "WIN_2000" Then ;Code for Win2k ElseIf @OSVersion = "WIN_XP" Then ;Code for WinXP Else ;Code if it isn't either EndIfFor other @OSVersion Values referr to the help file :-) Say: "Chuchichäschtli"My UDFs:_PrintImage UDF_WinAnimate UDFGruess Raindancer Link to comment Share on other sites More sharing options...
Guest capt doufos Posted August 25, 2005 Share Posted August 25, 2005 Thankyou people, all working now Link to comment Share on other sites More sharing options...
MSchindi Posted October 4, 2010 Share Posted October 4, 2010 (edited) You do not need @osversion (Depending autoit version), Build etc. but only a Version Number: My simple Workaround $ver = FileGetVersion("Winver.exe") if $ver < "6" Then ... ;its not Vista or Win7+ and so on... Later i found a other way with a DLL Call: See Thread: http://www.autoitscript.com/forum/index....p?showtopic=75796&view=findpost&p=550743 Edited October 5, 2010 by Schindi Link to comment Share on other sites More sharing options...
Developers Jos Posted October 4, 2010 Developers Share Posted October 4, 2010 You do not need @osversion (Depending autoit version), Build etc. but only a Version Number:My simple Workaround$ver = FileGetVersion("Winver.exe")if $ver < "6" Then ... ;its not Vista or Win7+ and so on...You are actually answering the question in this thread?Did you see the date?Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
MSchindi Posted October 5, 2010 Share Posted October 5, 2010 (edited) Sorry, but I need a solution, even if the Thread is older, i found this, and thought that this is not the solution. But later i found a other way: See Thread: http://www.autoitscript.com/forum/index.php?showtopic=75796&view=findpost&p=550743 I Think this Thread is from You ;-) And I will point out! lg. Schindi Edited October 5, 2010 by Schindi 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