dimanche 15 mars 2015

Looping a command in a Batch file


Vote count:

0





cd \Users\Kurashima\AppData\Local\Android\sdk\platform-tools
adb devices
adb shell screenrecord /storage/ext_sd/vid001.mp4
adb shell screenrecord /storage/ext_sd/vid002.mp4
adb shell screenrecord /storage/ext_sd/vid003.mp4


Before getting to my question, I must first make a disclaimer. I am a beginner in writing batch files.


What I want to do is to make those last three lines into a loop that will execute any number of times, incrementing the number in the file name, until the Ctrl+C command is entered. I know how to make a simple loop, using :start and goto start, but I'd end up overwriting the same file every time. How do I avoid that?



asked 59 secs ago







Looping a command in a Batch file

Aucun commentaire:

Enregistrer un commentaire