Welcome to the Android Central Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
Results 1 to 2 of 2
  1. Thread Author  Thread Author    #1  

    Default Fail to get the output of the command "adb devices" on Win7 X64

    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?
  2. #2  

    Default Re: Fail to get the output of the command "adb devices" on Win7 X64

    ">" - parameter from cmd.exe. Try "cmd /c adb.exe devices > file.txt".

Similar Threads

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

Posting Permissions