Click here to Skip to main content
15,897,371 members
Home / Discussions / C#
   

C#

 
GeneralRe: How do I run adb or fastboot command in the folder location? Pin
Richard MacCutchan16-Jan-18 22:08
mveRichard MacCutchan16-Jan-18 22:08 
PraiseRe: How do I run adb or fastboot command in the folder location? Pin
Member 1362111717-Jan-18 7:36
Member 1362111717-Jan-18 7:36 

So, I have a folder where it contains the files adb.exe, fastboot, logo, recovery ...

I want to know how to direct the commands using this folder.

example: in this folder, you have the file "LOGO.BIN" and need to push to the cell phone using this command "Fastboot flash logo logo.bin"

<pre>
OpenFileDialog openfile = new OpenFileDialog();

            openfile.Filter = "IMG files|*.img";
            openfile.Title = "Open a file..";
            if (openfile.ShowDialog() == DialogResult.OK)
            {
                flashrecoveryTextbox.Text = openfile.FileName;
                Process process = new Process();
                ProcessStartInfo startInfo = new ProcessStartInfo();
                startInfo.WindowStyle = ProcessWindowStyle.Hidden;
                startInfo.CreateNoWindow = true;
                startInfo.UseShellExecute = false;
                startInfo.RedirectStandardOutput = true;
                startInfo.FileName = "fastboot.exe";
                startInfo.Arguments = " flash logo.bin\"" + openfile.FileName + "\"";
                process.StartInfo = startInfo;
                process.Start();
                Console.Text = Console.Text + process.StandardOutput.ReadToEnd();
            }

how do I download and install a direct program from the site?

The site would be java using this link:
http://javadl.oracle.com/webapps/download/AutoDL?BundleId=230511_2f38c3b165be4555a1fa6e98c45e0808808



to download the new version of it and shows in the console


GeneralRe: How do I run adb or fastboot command in the folder location? Pin
Pete O'Hanlon17-Jan-18 8:59
mvePete O'Hanlon17-Jan-18 8:59 
GeneralRe: How do I run adb or fastboot command in the folder location? Pin
Richard MacCutchan17-Jan-18 23:26
mveRichard MacCutchan17-Jan-18 23:26 
GeneralRe: How do I run adb or fastboot command in the folder location? Pin
Member 1362111717-Jan-18 11:54
Member 1362111717-Jan-18 11:54 
QuestionError: Object reference not set to an instance of an object in C# Pin
Member 1030297116-Jan-18 13:52
Member 1030297116-Jan-18 13:52 
AnswerRe: Error: Object reference not set to an instance of an object in C# Pin
OriginalGriff16-Jan-18 21:12
mveOriginalGriff16-Jan-18 21:12 
GeneralRe: Error: Object reference not set to an instance of an object in C# Pin
Member 1030297117-Jan-18 2:47
Member 1030297117-Jan-18 2:47 
GeneralRe: Error: Object reference not set to an instance of an object in C# Pin
Pete O'Hanlon17-Jan-18 2:55
mvePete O'Hanlon17-Jan-18 2:55 
AnswerRe: Error: Object reference not set to an instance of an object in C# Pin
Ralf Meier16-Jan-18 21:14
mveRalf Meier16-Jan-18 21:14 
AnswerRe: Error: Object reference not set to an instance of an object in C# Pin
V.16-Jan-18 22:06
professionalV.16-Jan-18 22:06 
GeneralRe: Error: Object reference not set to an instance of an object in C# Pin
Member 1030297117-Jan-18 3:00
Member 1030297117-Jan-18 3:00 
GeneralRe: Error: Object reference not set to an instance of an object in C# Pin
F-ES Sitecore17-Jan-18 4:05
professionalF-ES Sitecore17-Jan-18 4:05 
GeneralRe: Error: Object reference not set to an instance of an object in C# Pin
Pete O'Hanlon17-Jan-18 4:41
mvePete O'Hanlon17-Jan-18 4:41 
GeneralRe: Error: Object reference not set to an instance of an object in C# Pin
V.18-Jan-18 3:25
professionalV.18-Jan-18 3:25 
QuestionException raised at wpf designer level Pin
abboudi_ammar16-Jan-18 7:35
abboudi_ammar16-Jan-18 7:35 
QuestionHow to convert a query to lambda based Pin
Mou_kol16-Jan-18 1:43
Mou_kol16-Jan-18 1:43 
AnswerRe: How to convert a query to lambda based Pin
OriginalGriff16-Jan-18 1:52
mveOriginalGriff16-Jan-18 1:52 
GeneralRe: How to convert a query to lambda based Pin
Mou_kol16-Jan-18 3:50
Mou_kol16-Jan-18 3:50 
GeneralRe: How to convert a query to lambda based Pin
Mou_kol24-Jan-18 0:26
Mou_kol24-Jan-18 0:26 
GeneralRe: How to convert a query to lambda based Pin
OriginalGriff24-Jan-18 0:44
mveOriginalGriff24-Jan-18 0:44 
AnswerRe: How to convert a query to lambda based Pin
Richard Deeming16-Jan-18 3:03
mveRichard Deeming16-Jan-18 3:03 
GeneralRe: How to convert a query to lambda based Pin
Mou_kol16-Jan-18 3:50
Mou_kol16-Jan-18 3:50 
GeneralRe: How to convert a query to lambda based Pin
Mou_kol24-Jan-18 0:35
Mou_kol24-Jan-18 0:35 
Questioncontour plot in visual studio Pin
Member 1362407415-Jan-18 6:27
Member 1362407415-Jan-18 6:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.