download all google drive files at once code example

Example 1: file id in google drive

For every file in Google drive you will have a file_id that is get 
the shareable link of that file and last part of that link you will 
get a file id. A file ID looks like: laggVyWshwcyP6kEI-y_W3P8D26sz.

Example 2: script to download a file to google drive

function saveFile() {
  var url = "http://www.ferc.gov/docs-filing/eqr/soft-tools/sample-csv/contract.txt";
  var blob = UrlFetchApp.fetch(url).getBlob();
  DriveApp.createFile(blob);
}

Tags:

Css Example