📅  最后修改于: 2022-03-11 14:55:33.777000             🧑  作者: Mango
function myFunction() {
var docx = DriveApp.getFilesByName('Dummy.docx').next();
var newDoc = Drive.newFile();
var blob =docx.getBlob();
var file=Drive.Files.insert(newDoc,blob,{convert:true});
DocumentApp.openById(file.id).setName(docx.getName());
}