使用c#从android设备中提取数据 [英] extracting data from android device using c#
本文介绍了使用c#从android设备中提取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在c#中开发一个Windows窗体应用程序。我已经在c#中安装了托管的adb包,并且已经开始使用madb从c#执行adb.exe,但我不知道如何从c#执行adb pull命令。期待您的帮助。
i am trying to develop a windows form application in c#. i have installed managed adb package in c# and have started executing the adb.exe from c# using madb but i dont know how to execute adb pull command from c#. looking forward to your help.
推荐答案
您可以使用Process
类。您可以将文件名作为adb提供,并在StartInfo
属性中提供命令详细信息。
You can make use ofProcess
class. You can provide filename as adb and provide command details inStartInfo
property.
Process process = new Process();
process.StartInfo = new ProcessStartInfo();
process.StartInfo.FileName = "adb";
process.StartInfo.Arguments = "command details here";
process.StartInfo.CreateNoWindow = true;
process.Start();
这篇关于使用c#从android设备中提取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文