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 b87bfb4 commit 34d4b40
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions WhyNotWin11.au3
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Func ProcessCMDLine()
MsgBox(0, "Help and Flags", _
"Checks PC for Windows 11 Release Compatibility" & @CRLF & _
@CRLF & _
"WhyNotWin11 [/format FORMAT FILENAME] [/silent]" & @CRLF & _
"WhyNotWin11 [/format FORMAT FILENAME [/silent]]" & @CRLF & _
@CRLF & _
@TAB & "/format" & @TAB & "Export Results in an Available format, can be used" & @CRLF & _
@TAB & " " & @TAB & "without the /silent flag for both GUI and file" & @CRLF & _
Expand Down Expand Up @@ -782,8 +782,6 @@ EndFunc

Func ParseResults($aResults)

MsgBox(0, "", "parse")

Local $aLabel[11] = ["Architecture (CPU + OS)", "Boot Method", "CPU Compatibility", "CPU Core Count", "CPU Frequency", "DirectX + WDDM2", "Disk Partition Type", "RAM Installed", "Secure Boot", "Storage Available", "TPM Version"]

Switch $aOutput[0]
Expand All @@ -794,9 +792,8 @@ Func ParseResults($aResults)
Else
$sFile = @ScriptDir & "\" & $aOutput[1]
EndIf
MsgBox(0, "", $sFile)
Local $hFile = FileOpen($sFile, $FO_CREATEPATH+$FO_OVERWRITE)
FileWrite($hFile, "Results for " & @ComputerName)
FileWrite($hFile, "Results for " & @ComputerName & @CRLF)
For $iLoop = 0 To 10 Step 1
FileWrite($hFile, $aLabel[$iLoop] & @TAB & $aResults[$iLoop][0] & @TAB & $aResults[$iLoop][1] & @TAB & $aResults[$iLoop][2] & @CRLF)
Next
Expand Down

0 comments on commit 34d4b40

Please sign in to comment.