Results 1 to 7 of 7

Thread: Writing to google drive

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2011
    Posts
    117

    Writing to google drive

    I need to write to google drive. I can read files from the drive but am having real trouble figuring out how to write to a simple text file. And above all that, I will take some advice from the pros out there...Is this even a good way to do this: I have software that will report usage statistics about itself to a file for viewing remotely. The data is not mission critical, but just nice to be able to review once in a while. Would it be better to have dedicated web server space? I am currently using drive to read files that are mission critical and have had zero problems. Would be nice to keep everything centrally located. Thanks.

  2. #2
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: Writing to google drive

    Why would you write to Google Drive? Why not simply create a text file and upload it?
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Dec 2011
    Posts
    117

    Re: Writing to google drive

    Well that is what I meant. Create a file and save to drive. I will need to be able to update the file. So I was thinking: retrieve file if it exists...add new line...save and upload...delete temp file that was downloaded. I need to have the google drive id number though. I am not sure how to find this on a newly uploaded file that was done programatically.

  4. #4
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: Writing to google drive

    Well again, why retrieve it? Keep a local copy, amend that, upload to overwrite the Google Drive copy.
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Dec 2011
    Posts
    117

    Re: Writing to google drive

    Ok I see. I have the backend finished that pulls historical data from database. It creates a text file with the appropriate data. I just need to upload it to the drive now. I have zero experience uploading to drive. It appears I need to install google drive api into vb as a first step? Is this correct? Is there no way to do something like a web request to post a file? thanks, Victor.

  6. #6
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Writing to google drive

    First stop should have been the online SDK - https://developers.google.com/drive/

    Then the next thing you should click is the appropriate link under the "Five minute quick start - Choose your language" header... one of which is .NET...


    It will tell you how to:
    Step 1: Enable the Drive API
    Step 2: Install the Google Client Library
    Step 3: Set up the sample
    Step 4: Run the sample


    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  7. #7
    New Member
    Join Date
    Mar 2015
    Posts
    1

    Re: Writing to google drive

    Victor,
    I hope you got the help you needed. Now maybe you can help me. I am trying to read from Google drive in my vb.net program. Do you have any example code to do it?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width