title: Running multiple adb shell commands in batch file
body: <p>I am making a batch file which would do this for N devices
  mount -o rw, remount /system
  and send .jar file to /system/framework/ on a rooted devices
  Currently I have something like</p>
  
  <pre><code>adb kill-server
  adb start-server
  adb disconnect
  ECHO "Connecting"
  adb connect 192.168.4.17
  adb connect 192.168.4.17
  adb connect 192.168.4.17
  adb connect 192.168.4.17
  ECHO "Connected"
  adb shell su -c "mount -o rw,remount /system"
  ECHO "Mounting /system sucessfully, copying.jar"
  timeout 5
  adb push android.policy.jar /system/framework/
  ECHO "Restarting device!"
  timeout 5
  adb reboot
  ECHO "DONE"
  </code></pre>
  
  <p>And then I would just copy this lines like N amount of times in 1 batch file and just change IP.
  The problem is that I cannot run </p>
  
  <pre><code>"adb shell su -c "mount -o rw,remount /system"
  </code></pre>
  
  <p>Because it says
  "su: su successfully
  su: exec failed for mount -o rw,remount /system Error:No such file or directory"</p>
  
  <p>If I try any other case of running multiple commands in adb shell it just breaks batch file and it doesn't work, I've also tried</p>
  
  <pre><code>adb shell "su &amp; mount -o rw,remount /system" 
  </code></pre>
  
  <p>but with no luck.</p>
  
  <p>How could I run a batch script which would update multiple rooted devices, so that I could just change IP?
  Ty in advance!</p>