Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Issue with For loop and/or CMD.exe

$
0
0

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


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>