Jump to content

Code to detect operating system


Recommended Posts

;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

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

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

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...