willwatters Posted August 8, 2005 Share Posted August 8, 2005 What is the code to detect if the operating system is Windows 2000 or Windows XP please? Link to comment Share on other sites More sharing options...
dinodod Posted August 8, 2005 Share Posted August 8, 2005 ;System Test - tested only on XP SP2 Systems If @OSVersion <> "WIN_XP" THEN Msgbox(16,"", "This is not Windows XP") EndIf Look in the help file. Digital Chaos - Life as we know it today.I'm a Think Tank. Problem is, my tank is empty.The Quieter you are, the more you can HearWhich would you choose - Peace without Freedom or Freedom without Peace?Digital Chaos Macgyver ToolkitCompletely Dynamic MenuSQLIte controlsAD FunctionsEXCEL UDFPC / Software Inventory UDFPC / Software Inventory 2GaFrost's Admin Toolkit - My main competitor :)Virtual SystemsVMWAREMicrosoft Virtual PC 2007 Link to comment Share on other sites More sharing options...
dj_judas21 Posted August 8, 2005 Share Posted August 8, 2005 What is the code to detect if the operating system is Windows 2000 or Windows XP please?<{POST_SNAPBACK}>Hope this helps - the key here is the macro @OSVERSION. All in the help file!$os = @OSVERSION select case $os = "WIN2000" msgbox(64,"OS Version","Windows 2000") case $os = "WIN_XP" msgbox(64,"OS Version","Windows XP") endselect Link to comment Share on other sites More sharing options...
willwatters Posted August 8, 2005 Author Share Posted August 8, 2005 Hope this helps - the key here is the macro @OSVERSION. All in the help file!$os = @OSVERSION select case $os = "WIN2000" msgbox(64,"OS Version","Windows 2000") case $os = "WIN_XP" msgbox(64,"OS Version","Windows XP") endselect<{POST_SNAPBACK}>Sorry But this does not work. What is the code please? Link to comment Share on other sites More sharing options...
willwatters Posted August 8, 2005 Author Share Posted August 8, 2005 Sorry none of this code works. Please correct the code. Thanks. Link to comment Share on other sites More sharing options...
willwatters Posted August 8, 2005 Author Share Posted August 8, 2005 I changed WIN2000 TO WIN_2000 and it works. Thanks for your help. Link to comment Share on other sites More sharing options...
Josbe Posted August 8, 2005 Share Posted August 8, 2005 Sorry none of this code works. Please correct the code. Thanks.<{POST_SNAPBACK}>Tip: Use the macro listed in the helpfile @OSVersion for detect the OS. Compare the strings. AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
Recommended Posts