Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running a Batch Script that is 1 FOR /F %%i loop and it is currently running over 5k files totaling 62mb. I am using Windows 7. The error doesn't generate everytime I run it. It seems to only generate after I run the script multiple times (for testing). Once I hit the 10 OKs for the error the script continues and may or may not throw the error again. The last time I had it open I was running a separate cmd line window with PROMPT $T active, and various other programs open in the background. Eventually I will need to run this over a folder containing 40gb of data and I would like to avoid the clicking catastrophe of Runtime Error R6016.

Any suggestions on what I can do to avoid this error? Need more info? let me know.


share|improve this question
How exactly are you running Bash on a windows machine? – EBGreen Nov 4 '13 at 19:24
Edited bash to Batch. thanks for catching that. – weewa Nov 4 '13 at 19:27
What are you doing in the DO portion of the loop? I suspect that is where the error is being generated. I don't think it is the batch script itself, but rather some program you are executing within the loop. – dbenham Nov 4 '13 at 20:28
I am running nConvert on .jpg images. Would OPTION BATCH CONTINUE suppress the error messages? – weewa Nov 4 '13 at 20:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.