使用檔案 ID 從 Google 雲端硬碟獲取檔案

function getGoogleDriveFileById(id) {
  var file;
  
  file = DriveApp.getFileById(id);//Returns a file - The "id" must be a string
  
  //One way to manually get a file ID
  // - Open the file from Google Drive
  // - The file ID is in the URL in the browsers address bar
  //https://docs.google.com/spreadsheets/d/File_ID_is_here/edit#gid=0
};