Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmaehl committed Jun 30, 2021
1 parent 92c1a51 commit 6da3237
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions WhyNotWin11.au3
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ If @OSBuild >= 22000 Then
EndIf

Func ProcessCMDLine()
Local $bCheck = False
$iParams = $CmdLine[0]
For $iLoop = 1 To $iParams Step 1
Switch $CmdLine[1]
Expand All @@ -84,9 +85,9 @@ Func ProcessCMDLine()
"All flags can be shortened to just the first character (e.g. /s)" & @CRLF)
Exit 0
Case "/s", "/silent"
ChecksOnly()
$bCheck = True
_ArrayDelete($CmdLine, 1)
If UBound($CmdLine) = 1 Then Exit
If UBound($CmdLine) = 1 Then ExitLoop
ContinueLoop
Case "/f", "/format"
Select
Expand All @@ -112,6 +113,7 @@ Func ProcessCMDLine()
Exit 1
EndSwitch
Next
If $bCheck Then ChecksOnly()
EndFunc

Func ChecksOnly()
Expand Down Expand Up @@ -796,7 +798,7 @@ Func ParseResults($aResults)
Local $hFile = FileOpen($sFile, $FO_CREATEPATH+$FO_OVERWRITE)
FileWrite($hFile, "Results for " & @ComputerName)
For $iLoop = 0 To 10 Step 1
FileWrite($hFile, $aLabel[$iLoop] & @TAB & $aResults[$iLoop][0] & $aResults[$iLoop][1] & $aResults[$iLoop][2] & @CRLF)
FileWrite($hFile, $aLabel[$iLoop] & @TAB & $aResults[$iLoop][0] & @TAB & $aResults[$iLoop][1] & @TAB & $aResults[$iLoop][2] & @CRLF)
Next
FileClose($hFile)
Case Else
Expand Down

0 comments on commit 6da3237

Please sign in to comment.