I have a script that I think I have a few problems with. The first problem is in my For $x loop.  It isn't executing the For statement. ; Delete all registry keys in .reg file ; #RequireAdmin #include <file.au3> #include "ExtMsgBox.au3" Dim $MyArrayVariable, $MsgBoxText, $x $FileToRead = "D:\Dnload\%Test\SuperSpeed.reg" ; Read reg file into array If _FileReadToArray($FileToRead, $MyArrayVariable) Then     For $i = 1 To $MyArrayVariable[0]         $MsgBoxText = $MsgBoxText & $i &