执行shell命令编程 [英] Executing shell commands programmatically

查看:152
本文介绍了执行shell命令编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过程序来执行这个shell命令。我该怎么办呢?

  CD C:\\ Android的SDK \\平台工具
亚行的shell

安装-t RFS -o重新装载,RW的/ dev /块/ stl9 /系统
CP /sdcard/MyApp.apk /system/app/MyApp.apk


解决方案

您应该写你在这里使用了的.bat 文件的确切语法,然后就执行它

I want to execute this shell commands by program. How can I do it?

cd C:\android-sdk\platform-tools
adb shell
su
mount -t rfs -o remount,rw /dev/block/stl9 /system
cp /sdcard/MyApp.apk /system/app/MyApp.apk

解决方案

You Should write the exact syntax you used here in a .bat file, and then just execute it.

这篇关于执行shell命令编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆