1. motori_ks's Avatar
    I have a program which launches "adb" to get the adb devices list. This program have been working well on my winxp machine. Recently I found it could not work normally on my Win7 X64 pro SP1 PC. After I debugged, I found the parent process failed to get the output of adb. If I added "fflush" after "printf" in the source code of adb, the parent process can get the output.
    If run "adb devices" on windows command line directly, the result looks fine. However, if run "adb devices > file.txt", there is no content in file.txt.
    Moreover, the output of "adb version" can be captured.
    I've been searching the relevant problems these days, but I haven't found anything useful up to now.
    I've been stucked for a long time, do anyone have some ideas?
    01-24-2013 02:23 AM
  2. Sergey Murzin's Avatar
    ">" - parameter from cmd.exe. Try "cmd /c adb.exe devices > file.txt".
    07-04-2013 09:58 AM

Similar Threads

  1. Ok, Lets Get to the Root of the Mic Cutout Problem
    By Poseign in forum Verizon Galaxy Nexus
    Replies: 62
    Last Post: 07-02-2015, 12:47 AM
  2. Replies: 18
    Last Post: 06-26-2014, 01:57 PM
  3. How to get pics off of the phone
    By usguyver in forum Sprint Galaxy Nexus
    Replies: 5
    Last Post: 01-10-2013, 02:00 AM
  4. Getting use to the size of the X
    By billfisher1 in forum Motorola Droid X
    Replies: 14
    Last Post: 07-07-2010, 09:05 PM
  5. Scroll to the top of the list?
    By kkwan77#AC in forum Motorola Droid
    Replies: 3
    Last Post: 11-07-2009, 05:19 PM