I am not able to zip the file. For individual file, no problem.
I am no specialist, no coder, I just have to manage tones of DATA, I was doing things one file at the time, but the company is progressing so fast it will not be sustenable, I am asking newbee questions, sorry for that.
function zipall() {
var ss = SpreadsheetApp.openById("1Ib6ul8KHIcRfE1lJVpWou6SU9bYdBnU-jd8d5eEuWnw");
SpreadsheetApp.setActiveSpreadsheet(ss);
var sheet = ss.getSheetByName('Drive管理用');
for(var i=93; i<94; i++){
if (AdressData != 0 ){
var AdressData = sheet.getRange(i,26).getValue();
var folder = DriveApp.getFolderById(AdressData);
var files = folder.getFiles();
var blobs = [];
while (files.hasNext()) {
blobs.push(files.next().getBlob());
}
var zipBlob = Utilities.zip(blobs, folder.getName() + ".zip");
var fileId = DriveApp.createFile(zipBlob).getId()
//var url = "https://drive.google.com/uc?export=download&id=" + fileId;
//sheet.getRange(i,27).setValue(url);
}}}
I have an other error message
"File selection.zip exceeds the maximum file size.(行 19、ファイル「Code」) 表示しない" Message is shown
But I never had a size problem when I do it manually.
???