Whenever I run the following code, the loop never makes it all the way to $end ($start = 30628752, $end = 30629085). Any ideas as to why this could be happening?
Global $start = InputBox("Start", "Enter Start Cluster") Global $end = InputBox("End", "Enter End Cluster") Run("cmd.exe") WinWaitActive("Administrator: C:\Windows\system32\cmd.exe") Send("cd tsk{ENTER}cd bin{ENTER}") For $i = $start to $end Step 1 Send("blkstat \\.\C: "&String($i)&" >> "&$path&"\CLUSTER"&String($i)&".txt{ENTER}") ProcessWait("blkstat.exe") Next
Thanks