$letter[0][0] = "w"
$letter[0][1] = "x"
$letter[1][0] = "y"
$letter[1][1] = "z"
A visual representation of Example 3 would be a 2×2 matrix as displayed in Figure 1.
$letter[0][0] = "w"
$letter[0][1] = "x"
$letter[1][0] = "y"
$letter[1][1] = "z"
Const $example = 0
Dim Const $example1 = 1
Global Const $example2 = 2
Local Const $example3 = 3
Arrays$num[0] = "5"
$num[1] = "3"
Opt("MustDeclareVars", 1)
Dim $variable = @ScriptDir & "\setup.exe"
Run($variable)
function()
Func function()
Dim $variable = @ScriptDir & "\setup.exe"
EndFunc
Run($variable)
Global $variable = @ScriptDir & "\setup.exe"
function()
Func function()
Dim $variable = @ScriptDir & "\setupbad.exe"
EndFunc
Run($variable)
Global $variable = 2
function()
Func function()
Local $variable = @ScriptDir & "\setup.exe"
Run($variable)
EndFunc
Global $admin, $password, $program, $program2
$admin = "Administrator"
$password = "password"
; change password to the password for the
; Administrator account
; change the following program names to the
; actual filenames of 2 Windows updates
$program = "Windows Update 1.exe /passive /norestart"
$program2 = "Windows Update 2.exe /passive /norestart"
If @Username <> "Administrator" Then
RunAsSet($admin,@ComputerName,$password)
install()
RunAsSet()
Else
install()
EndIf
Func install()
RunWait($program)
RunWait($program2)
EndFunc
If @Username <> "Administrator" Then
RunAsSet("Administrator",@ComputerName,"password")
install()
RunAsSet()
Else
install()
EndIf
Func install()
RunWait("Windows Update 1.exe /passive /norestart")
RunWait("Windows Update 2.exe /passive /norestart")
EndFunc