What is the physical difference between the two?!! 10-05-2011, 07:24 AM
#1
I cannot figure it out. Not sure if my eyes are deceiving me or what but what is the difference in the two sets of code? this is autoit3 btw
Dont say anything about letter cases (capital letters vs undercase letter) and the single quote over double quote (' over ") they all mean the same thing respectively.
The code i handwrote
The code presented.
Dont say anything about letter cases (capital letters vs undercase letter) and the single quote over double quote (' over ") they all mean the same thing respectively.
The code i handwrote
Code:
Dim $version = @AutoItVersion
Dim $computername = @ComputerName
Dim $OS = @OSVersion
Dim $text = ''
Switch $OS
Case 'Win_2008'
$OS = 'Windows Server 2008'
Case 'Win_vista'
$OS = 'Windows Vista'
Case 'Win_2003'
$OS = 'Windows Server 2003'
Case 'Win_xp'
$OS = 'Windows xp'
Case 'Win_2000'
$OS = 'Windows 2000'
Case 'Win_nt4'
$OS = 'Windows NT 4.0'
Case 'Win_me'
$OS = 'Windows ME'
Case 'Win_98'
$OS = 'Windows 98'
Case 'Win_95'
$OS = 'Windows 95'
Case Else
$OS = 'Unknown!'
EndSwitch
$text = 'Autoit Version = ' & $version & @CRLF
$text = 'Computer Name = ' & $computername & @CRLF
$text = 'Operating System = ' & $OS
MsgBox (0,'Computer Information',$text)The code presented.
Code:
Dim $version = @AutoItVersion
Dim $computername = @ComputerName
Dim $OS = @OSVersion
Dim $text = ""
Switch $OS
Case "WIN_2008"
$OS = "Windows Server 2008"
Case "WIN_VISTA"
$OS = "Windows Vista"
Case "WIN_2003"
$OS = "Windows Server 2003"
Case "WIN_XP"
$OS = "Windows XP"
Case "WIN_2000"
$OS = "Windows 2000"
Case "WIN_NT4"
$OS = "Windows NT 4.0"
Case "WIN_ME"
$OS = "Windows ME"
Case "WIN_98"
$OS = "Windows 98"
Case "WIN_95"
$OS = "Windows 95"
Case Else
$OS = "Unknown!"
EndSwitch
$text = "AutoIt Version = " & $version & @CRLF
$text &= "Computer Name = " & $computername & @CRLF
$text &= "Operating System = " & $OS
MsgBox (0, "Computer Information", $text)



![[+]](https://sinister.li/images/modern/collapse_collapsed.png)

![[Image: rytwG00.png]](http://i.imgur.com/rytwG00.png)
