在Bash中,我可以这样写:
#!/bin/sh
ant debug && adb install -r bin/Rocher-debug.apk
但是我有一个类似的Windows批处理文件,目前它会执行以下操作:
ant debug
adb install -r bin/Rocher-debug.apk
所以,如果“ant debug”失败了,它仍然会运行“adb install”,这不是理想的解决方案。在这种情况下,你们中有人知道如何执行“&&”吗?
我真的很想坐下来好好学一下Windows脚本,因为几个月后我会做很多Windows工作。但现在,一个快速的答案就足够了。:-)