Google Apps Script googleドライブにフォルダを作成する

環境
Google Chrome 111.0.5563.66(Official Build) (64 ビット)
Windows 10 Home 64bit

書式
DriveApp.createFolder(フォルダ名)
「DriveApp.createFolder()」を使って、フォルダを作成します。

使用例

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function myFunction() {
// フォルダを作成
DriveApp.createFolder('test2023');
}
function myFunction() { // フォルダを作成 DriveApp.createFolder('test2023'); }
function myFunction() {
  // フォルダを作成
  DriveApp.createFolder('test2023');
}

結果
フォルダ「test2023」が作成されます。

Google Apps Script

Posted by arkgame