1. Are you ready for the Galaxy S20? Here is everything we know so far!

Reading text files from Android to Windows 7 Using Batch File

Discussion in 'Android Help' started by Android Question, Jan 11, 2016.

  1. Android Question

    Thread Starter

    Hi. I have an android phone/barcode reader and need to read a simple text file from the device to a windows 7 PC. I can do this using explorer as it sees the android file system, but I need to be able to do it using a windows batch file as it is part of a bigger process. The android hard drive is not a mapped drive in Windows. I need to be able to either map the drive so that I can read the file in the conventional 'Windows' way (using cecopy.exe command) or I need another method that can be incorporated into a batch file. Can anyone help please?
     



    1. Download the Forums for Android™ app!


      Download

       
  2. lunatic59

    lunatic59 Moderati ergo sum
    Moderator

    Just a thought. Perhaps you can set the default save location for the text file to a dropbox or Google Drive folder and then windows can read it from the cloud?
     
  3. Sadly, no. The app to generate the file only allows the file to be written internally. Also, although the device is a phone and 2D barcode reader, the phone/internet access side is disabled, ie it is only a barcode reader at this time.
     
  4. lunatic59

    lunatic59 Moderati ergo sum
    Moderator

    What version of Android are you using? After 4.1 I think the only data connection on the phone is MTP which won't allow drive mapping.

    If the device is going to be connected to the PC at the time the file is created, you could have tasker watch the folder and push any new files to your PC. Don't ask me how, I'm not familiar enough with tasker to be able to answer that definitively. If you think that might work for you, I could track down a tasker guru for you. :)
     
  5. I believe it is 4.1. No, the device won't be connected to the PC at the time the file is created - it may sometimes, but cannot be guaranteed.
     
Loading...

Share This Page

Loading...