{"id":295,"date":"2025-05-26T13:54:39","date_gmt":"2025-05-26T04:54:39","guid":{"rendered":"https:\/\/cg-method.com\/google\/?p=295"},"modified":"2026-10-28T13:00:39","modified_gmt":"2026-10-28T04:00:39","slug":"google-drive-folder-file-count-gas","status":"publish","type":"post","link":"https:\/\/cg-method.com\/google\/google-drive-folder-file-count-gas\/","title":{"rendered":"Google\u30c9\u30e9\u30a4\u30d6\u2502\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u6570\u3092\u96c6\u8a08\u3059\u308b\u65b9\u6cd5\u2502GAS"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u5404\u30d5\u30a9\u30eb\u30c0\u306e\u76f4\u4e0b\u306b\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u6570\u3092\u96c6\u8a08\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u89aa\u306e\u884c\u306f\u5b50\u306e\u4ef6\u6570\u3092\u5408\u7b97\u305b\u305a\u3001\u5168\u8d70\u67fb\u306e\u5408\u8a08\u306f\u5b9f\u884c\u30ed\u30b0\u306b\u5206\u3051\u3066\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d5\u30a1\u30a4\u30eb\u4ef6\u6570\u306f\u4f7f\u7528\u5bb9\u91cf\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u306e\u6a21\u64ec\u691c\u8a3c\u306f2026\u5e7410\u67082\u65e5\u306e\u8a18\u9332\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30ed\u30fc\u30ab\u30eb\u306e\u6a21\u64ec\u691c\u8a3c\u3092\u884c\u3044\u307e\u3057\u305f\u304c\u3001Google\u3078\u306e\u8a8d\u53ef\u30fb\u5b9f\u30b7\u30fc\u30c8\u3078\u306e\u53cd\u6620\u30fbDrive\u306e\u5b9f\u30d5\u30a1\u30a4\u30eb\u5217\u6319\u306f\u672a\u691c\u8a3c\u3067\u3059\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u96c6\u8a08\u306fApps Script\u30a8\u30c7\u30a3\u30bf\u304b\u3089\u5b9f\u884c\u3057\u3001Web\u30a2\u30d7\u30ea\u306e\u914d\u5099\u306f\u4e0d\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2026\u5e7410\u670825\u65e5\u306b\u516c\u5f0f\u8cc7\u6599\u3068\u914d\u5e03ZIP\u3092\u7167\u5408\u3057\u3001<code>article-295.js<\/code>\u3068\u672c\u6587\u30b3\u30fc\u30c9\u306e\u4e00\u81f4\u3092\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u4eca\u56de\u306fGoogle\u4e0a\u3067\u306e\u5b9f\u884c\u3084\u753b\u9762\u78ba\u8a8d\u3092\u884c\u3063\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">\u7df4\u7fd2\u7528\u306e\u5165\u529b\u3068\u8a2d\u5b9a<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u884c\u3059\u308bGoogle\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u95b2\u89a7\u3067\u304d\u308b\u30d5\u30a9\u30eb\u30c0\u3068\u3001\u7de8\u96c6\u3067\u304d\u308b\u7df4\u7fd2\u7528\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u7528\u610f\u3057\u307e\u3059\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u51fa\u529b\u5148\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u96c6\u8a08\u5bfe\u8c61\u30d5\u30a9\u30eb\u30c0\u5185\u306b\u7f6e\u304f\u3068\u3001\u305d\u308c\u81ea\u4f53\u3082\u30d5\u30a1\u30a4\u30eb\u6570\u306b\u542b\u307e\u308c\u307e\u3059\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">ZIP\u3092\u5c55\u958b\u3057\u3001<code>article-295.js<\/code>\u306e\u5185\u5bb9\u3092\u65b0\u898fApps Script\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30b3\u30fc\u30c9\u3078\u8cbc\u308a\u4ed8\u3051\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u540c\u540d\u306e\u95a2\u6570\u3092\u542b\u3080\u305f\u3081\u3001\u5225\u306e\u8a18\u4e8b\u306e\u30b3\u30fc\u30c9\u3092\u540c\u3058\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3078\u6df7\u305c\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2026\/10\/cgm-google-data-practice-20261002.zip\">\u30c7\u30fc\u30bf\u6574\u7406\u306e\u7df4\u7fd2\u30b3\u30fc\u30c9\u3068HTML\u4f8b\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\uff08ZIP\uff09<\/a><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th style=\"min-width:8em !important\">\u8a2d\u5b9a\u540d<\/th><th style=\"min-width:8em !important\">\u8a2d\u5b9a\u3059\u308b\u5024<\/th><\/tr><\/thead><tbody><tr><td><code>FOLDER_ID<\/code><\/td><td>\u95b2\u89a7\u3067\u304d\u308b\u7df4\u7fd2\u30d5\u30a9\u30eb\u30c0ID<\/td><\/tr><tr><td><code>SPREADSHEET_ID<\/code><\/td><td>\u7df4\u7fd2\u7528\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8ID<\/td><\/tr><tr><td><code>RECURSIVE<\/code><\/td><td>\u76f4\u4e0b\u3060\u3051\u306ffalse\u3002\u5b50\u30d5\u30a9\u30eb\u30c0\u3082\u542b\u3081\u308b\u5834\u5408\u306ftrue<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u5de6\u5074\u306e\u300c\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8a2d\u5b9a\u300d\u3092\u958b\u304d\u3001\u300c\u30b9\u30af\u30ea\u30d7\u30c8 \u30d7\u30ed\u30d1\u30c6\u30a3\u300d\u306b\u8868\u306e3\u9805\u76ee\u3092\u8ffd\u52a0\u3057\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>RECURSIVE<\/code>\u306f\u5c0f\u6587\u5b57\u306e<code>true<\/code>\u307e\u305f\u306f<code>false<\/code>\u3092\u3001\u5f15\u7528\u7b26\u3092\u4ed8\u3051\u305a\u306b\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u63b2\u8f09\u30b3\u30fc\u30c9\u306f\u6587\u5b57\u5217<code>true<\/code>\u3068\u306e\u5b8c\u5168\u4e00\u81f4\u3067\u5224\u5b9a\u3059\u308b\u305f\u3081\u3001\u672a\u8a2d\u5b9a\u3084<code>TRUE<\/code>\u3067\u306f\u5b50\u30d5\u30a9\u30eb\u30c0\u3092\u8abf\u3079\u307e\u305b\u3093\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u30b3\u30fc\u30c9\u4e2d\u306b\u3042\u308b<code>SHEET_NAME<\/code>\u306f\u3001\u3053\u306e\u96c6\u8a08\u3067\u547c\u3070\u308c\u306a\u3044\u5171\u901a\u95a2\u6570\u306e\u8a2d\u5b9a\u306a\u306e\u3067\u5165\u529b\u4e0d\u8981\u3067\u3059\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u8ffd\u52a0\u30fb\u4fdd\u5b58\u306e\u5834\u6240\u306f<a href=\"https:\/\/developers.google.com\/apps-script\/guides\/properties\">Google\u516c\u5f0f\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u8a2d\u5b9a\u624b\u9806<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305a\u65b0\u898f\u306e\u7df4\u7fd2\u30c7\u30fc\u30bf\u3092\u4f7f\u3044\u3001\u8981\u6c42\u3055\u308c\u308b\u8a8d\u53ef\u7bc4\u56f2\u3068\u64cd\u4f5c\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">GAS\u306e\u69cb\u6587\u304b\u3089\u5b66\u3073\u305f\u3044\u5834\u5408\u306f\u3001\u6b21\u306e\u5165\u9580\u66f8\u3082\u5019\u88dc\u3067\u3059\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u30b5\u30f3\u30d7\u30eb\u3092\u8a66\u3059\u305f\u3081\u306b\u8cfc\u5165\u3059\u308b\u5fc5\u8981\u306f\u306a\u304f\u3001\u307e\u305a\u672c\u6587\u3068\u516c\u5f0f\u8cc7\u6599\u3067\u52d5\u304d\u3092\u78ba\u304b\u3081\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n<div class=\"product-card\" data-id=\"23047\" data-sale-effect=\"flash\">\n\t\t<div class=\"product-card__image\">\n\t\t<a href=\"https:\/\/www.amazon.co.jp\/dp\/4798064742?tag=cgm-google-22&#038;linkCode=ogi&#038;th=1&#038;psc=1\" rel=\"nofollow noopener sponsored\" target=\"_blank\">\t\t\t<img src=\"https:\/\/m.media-amazon.com\/images\/I\/51FYffSOBcS._SL500_.jpg\" alt=\"\" width=\"200\" height=\"200\" loading=\"lazy\" decoding=\"async\" \/>\t\t<\/a>\t<\/div>\n\t\t<div class=\"product-card__body\">\n\t\t<div class=\"product-card__title\">\n\t\t\t\t\t\t<a href=\"https:\/\/www.amazon.co.jp\/dp\/4798064742?tag=cgm-google-22&#038;linkCode=ogi&#038;th=1&#038;psc=1\" rel=\"nofollow noopener sponsored\" target=\"_blank\">\u8a73\u89e3! Google Apps Script\u5b8c\u5168\u5165\u9580\uff3b\u7b2c3\u7248\uff3d<\/a>\n\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"product-card__info\">\u79c0\u548c\u30b7\u30b9\u30c6\u30e0<\/div>\n\t\t\t\t\t\t<div class=\"product-card__price\">\u00a52,860<span>\uff082026\/09\/24 18:33\u6642\u70b9 | Amazon\u8abf\u3079\uff09<\/span><\/div>\n\t\t\t\t\t\t<div class=\"product-card__review\"><a href=\"https:\/\/www.amazon.co.jp\/product-reviews\/4798064742?tag=cgm-google-22\" rel=\"nofollow noopener sponsored\" target=\"_blank\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path fill=\"currentColor\" d=\"M12 17.3l-6.2 3.7 1.6-7L2 9.2l7.2-.6L12 2l2.8 6.6 7.2.6-5.4 4.8 1.6 7z\"\/><\/svg><span>\u53e3\u30b3\u30df\u3092\u898b\u308b<\/span><\/a><\/div>\n\t\t\t<\/div>\n\t\t<div class=\"product-card__btns\">\n\t\t\t\t<div class=\"product-card__btnwrap -rakuten -on-sale\">\n\t\t\t\t\t\t<div class=\"product-card__sale\">\uff3c\u697d\u5929\u30dd\u30a4\u30f3\u30c84\u500d\u30bb\u30fc\u30eb\uff01\uff0f<\/div>\n\t\t\t\t\t\t<a href=\"https:\/\/hb.afl.rakuten.co.jp\/hgc\/14eb6112.12938970.14eb6113.c6861b17\/_RTLink148150?pc=https%3A%2F%2Fsearch.rakuten.co.jp%2Fsearch%2Fmall%2FGoogle%2520Apps%2520Script%25E5%25AE%258C%25E5%2585%25A8%25E5%2585%25A5%25E9%2596%2580&#038;m=https%3A%2F%2Fsearch.rakuten.co.jp%2Fsearch%2Fmall%2FGoogle%2520Apps%2520Script%25E5%25AE%258C%25E5%2585%25A8%25E5%2585%25A5%25E9%2596%2580\" class=\"product-card__btn\" rel=\"nofollow noopener sponsored\" target=\"_blank\"><span>\u697d\u5929\u5e02\u5834<\/span><\/a>\n\t\t<\/div>\n\t\t\t\t<div class=\"product-card__btnwrap -amazon\">\n\t\t\t\t\t\t<a href=\"https:\/\/www.amazon.co.jp\/dp\/4798064742?tag=cgm-google-22&#038;linkCode=ogi&#038;th=1&#038;psc=1\" class=\"product-card__btn\" rel=\"nofollow noopener sponsored\" target=\"_blank\"><span>Amazon<\/span><\/a>\n\t\t<\/div>\n\t\t\t\t<div class=\"product-card__btnwrap -yahoo\">\n\t\t\t\t\t\t<a href=\"https:\/\/shopping.yahoo.co.jp\/search?p=Google%20Apps%20Script%E5%AE%8C%E5%85%A8%E5%85%A5%E9%96%80\" class=\"product-card__btn\" rel=\"nofollow noopener sponsored\" target=\"_blank\"><span>Yahoo\u30b7\u30e7\u30c3\u30d4\u30f3\u30b0<\/span><\/a>\n\t\t<\/div>\n\t\t\t<\/div>\n\t<\/div>\n\n\n\n\n<h2 class=\"wp-block-heading\">\u5165\u529b\u4f8b\u3068\u5b9f\u884c\u3059\u308b\u95a2\u6570<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u89aa\u30d5\u30a9\u30eb\u30c0\u306b1\u500b\u3001\u5b50\u306b1\u500b\u306e\u7df4\u7fd2\u4f8b\u3067\u306f\u3001<code>RECURSIVE=true<\/code>\u306e\u7d50\u679c\u306b\u89aa1\u30fb\u5b501\u304c\u5225\u884c\u3067\u51fa\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5168\u8d70\u67fb\u5408\u8a08\u306f2\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u521d\u306b<code>previewCounts<\/code>\u3067\u96c6\u8a08\u3060\u3051\u3092\u884c\u3044\u3001\u5185\u5bb9\u3092\u78ba\u304b\u3081\u3066\u304b\u3089<code>exportCounts<\/code>\u3067\u51fa\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u30a8\u30c7\u30a3\u30bf\u3067\u30b3\u30fc\u30c9\u3092\u4fdd\u5b58\u3057\u3001\u95a2\u6570\u306e\u9078\u629e\u6b04\u304b\u3089<code>previewCounts<\/code>\u3092\u9078\u3093\u3067\u300c\u5b9f\u884c\u300d\u3092\u62bc\u3057\u307e\u3059\u3002<\/li><li>\u521d\u56de\u306b\u8a8d\u53ef\u304c\u6c42\u3081\u3089\u308c\u305f\u3089\u3001\u5b9f\u884c\u30a2\u30ab\u30a6\u30f3\u30c8\u3068\u8981\u6c42\u3055\u308c\u308b\u30a2\u30af\u30bb\u30b9\u7bc4\u56f2\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/li><li>\u5b9f\u884c\u30ed\u30b0\u3067\u3001\u7df4\u7fd2\u4f8b\u306e\u30d5\u30a9\u30eb\u30c0\u6570\u304c2\u3001\u5168\u8d70\u67fb\u30d5\u30a1\u30a4\u30eb\u6570\u304c2\u306b\u306a\u308b\u304b\u78ba\u304b\u3081\u307e\u3059\u3002<\/li><li>\u30a8\u30e9\u30fc\u304c\u306a\u3051\u308c\u3070<code>exportCounts<\/code>\u3092\u9078\u3093\u3067\u5b9f\u884c\u3057\u3001\u6307\u5b9a\u3057\u305f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u958b\u304d\u307e\u3059\u3002<\/li><li>\u65b0\u3057\u3044<code>\u7df4\u7fd2\u7d50\u679c_<\/code>\u3067\u59cb\u307e\u308b\u30b7\u30fc\u30c8\u306b\u3001\u89aa\u3068\u5b50\u306e\u884c\u304c\u305d\u308c\u305e\u308c1\u4ef6\u3068\u51fa\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/li><\/ol>\n\n\n<p class=\"wp-block-paragraph\"><code>previewCounts<\/code>\u3067\u306f\u7d50\u679c\u30b7\u30fc\u30c8\u3092\u4f5c\u308a\u307e\u305b\u3093\u304c\u3001\u5bfe\u8c61\u30d5\u30a9\u30eb\u30c0\u306e\u8d70\u67fb\u306f\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\"><code>exportCounts<\/code>\u306f\u518d\u3073\u8d70\u67fb\u3059\u308b\u305f\u3081\u3001\u305d\u306e\u9593\u306b\u30d5\u30a1\u30a4\u30eb\u304c\u5897\u6e1b\u3059\u308b\u3068\u4ef6\u6570\u3082\u5909\u308f\u308a\u307e\u3059\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u51fa\u529b\u5217\u306fA\u304c\u30d5\u30a9\u30eb\u30c0\u30d1\u30b9\u3001B\u304c\u30d5\u30a9\u30eb\u30c0ID\u3001C\u304c\u76f4\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u6570\u3067\u3001\u500b\u5225\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u4e00\u89a7\u306f\u51fa\u529b\u3057\u307e\u305b\u3093\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u64cd\u4f5c\u306e\u57fa\u672c\u306f<a href=\"https:\/\/developers.google.com\/apps-script\/guides\/standalone\">\u30a8\u30c7\u30a3\u30bf\u304b\u3089\u306e\u95a2\u6570\u5b9f\u884c<\/a>\u3068<a href=\"https:\/\/developers.google.com\/apps-script\/guides\/services\/authorization\">Google\u30b5\u30fc\u30d3\u30b9\u306e\u8a8d\u53ef<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\"><code>\/\/ \u3053\u306e\u30b3\u30fc\u30c9\u306f\u8a18\u4e8b\u3054\u3068\u306b\u5225\u306eApps Script\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3078\u4fdd\u5b58\u3057\u307e\u3059\u3002\nfunction required_(key) {\n  const value=PropertiesService.getScriptProperties().getProperty(key);\n  if (!value) throw new Error(key+&#x27;\u3092\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044&#x27;);\n  return value;\n}\nfunction safeCell_(value) {\n  const s=String(value);\n  return \/^[=+@-]\/.test(s) ? &quot;&#x27;&quot;+s : s;\n}\nfunction escapeHtml_(value) {\n  return String(value).replace(\/[&amp;&lt;&gt;&quot;&#x27;]\/g,c=&gt;({&#x27;&amp;&#x27;:&#x27;&amp;amp;&#x27;,&#x27;&lt;&#x27;:&#x27;&amp;lt;&#x27;,&#x27;&gt;&#x27;:&#x27;&amp;gt;&#x27;,&#x27;&quot;&#x27;:&#x27;&amp;quot;&#x27;,&quot;&#x27;&quot;:&#x27;&amp;#39;&#x27;}[c]));\n}\nfunction https_(value) {\n  const s=String(value).trim();\n  if (!\/^https:\\\/\\\/[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?(?::443)?(?:[\/?#][^\\s&lt;&gt;&quot;&#x27;\\\\]*)?$\/i.test(s)) throw new Error(&#x27;HTTPS URL\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044&#x27;);\n  return s;\n}\nfunction sourceSheet_() {\n  const sheet=SpreadsheetApp.openById(required_(&#x27;SPREADSHEET_ID&#x27;)).getSheetByName(required_(&#x27;SHEET_NAME&#x27;));\n  if (!sheet) throw new Error(&#x27;\u5bfe\u8c61\u30b7\u30fc\u30c8\u304c\u3042\u308a\u307e\u305b\u3093&#x27;);\n  return sheet;\n}\nfunction walkFolder_(root,recursive) {\n  const queue=[{folder:root,path:root.getName()}],seen=new Set(),rows=[],counts=[];\n  let visitedFiles=0;\n  for (let index=0;index&lt;queue.length;index++) {\n    if (index&gt;=100) throw new Error(&#x27;100\u30d5\u30a9\u30eb\u30c0\u3092\u8d85\u3048\u308b\u305f\u3081\u4e2d\u6b62\u3057\u307e\u3057\u305f&#x27;);\n    const {folder,path}=queue[index],id=folder.getId();\n    if (seen.has(id)) throw new Error(&#x27;\u91cd\u8907\u30d5\u30a9\u30eb\u30c0ID\u3067\u3059&#x27;);\n    seen.add(id);\n    const files=folder.getFiles();let count=0;\n    while (files.hasNext()) {\n      const file=files.next();\n      if (++visitedFiles&gt;1000) throw new Error(&#x27;1000\u30d5\u30a1\u30a4\u30eb\u3092\u8d85\u3048\u308b\u305f\u3081\u4e2d\u6b62\u3057\u307e\u3057\u305f&#x27;);\n      rows.push([safeCell_(path),safeCell_(file.getName()),file.getUrl(),file.getId()]);count++;\n    }\n    counts.push([safeCell_(path),id,count]);\n    if (recursive) {\n      const children=folder.getFolders();\n      while(children.hasNext()) {\n        const child=children.next();queue.push({folder:child,path:path+&#x27; \/ &#x27;+child.getName()});\n        if(queue.length&gt;100) throw new Error(&#x27;100\u30d5\u30a9\u30eb\u30c0\u3092\u8d85\u3048\u308b\u305f\u3081\u4e2d\u6b62\u3057\u307e\u3057\u305f&#x27;);\n      }\n    }\n  }\n  return {rows,counts,total:visitedFiles};\n}\nfunction createOutput_(header,rows) {\n  \/\/ \u8d70\u67fb\u5b8c\u4e86\u5f8c\u3060\u3051\u3001\u65b0\u898f\u306e\u7a7a\u30b7\u30fc\u30c8\u3078\u4e00\u62ec\u51fa\u529b\u3057\u307e\u3059\u3002\n  const ss=SpreadsheetApp.openById(required_(&#x27;SPREADSHEET_ID&#x27;));\n  const name=&#x27;\u7df4\u7fd2\u7d50\u679c_&#x27;+Utilities.getUuid().replace(\/-\/g,&#x27;&#x27;);\n  const sheet=ss.insertSheet(name);\n  if(sheet.getMaxRows()&lt;rows.length+1) sheet.insertRowsAfter(sheet.getMaxRows(),rows.length+1-sheet.getMaxRows());\n  sheet.getRange(1,1,rows.length+1,header.length).setValues([header,...rows]);\n  return name;\n}\nfunction recursive_(){return PropertiesService.getScriptProperties().getProperty(&#x27;RECURSIVE&#x27;)===&#x27;true&#x27;;}\nfunction previewCounts() {\n  const result=walkFolder_(DriveApp.getFolderById(required_(&#x27;FOLDER_ID&#x27;)),recursive_());\n  Logger.log(&#x27;\u30d5\u30a9\u30eb\u30c0\u6570: &#x27;+result.counts.length+&#x27; \/ \u5168\u8d70\u67fb\u30d5\u30a1\u30a4\u30eb\u6570: &#x27;+result.total);return result;\n}\nfunction exportCounts() {\n  const result=previewCounts();\n  return createOutput_([&#x27;\u30d5\u30a9\u30eb\u30c0\u30d1\u30b9&#x27;,&#x27;\u30d5\u30a9\u30eb\u30c0ID&#x27;,&#x27;\u76f4\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u6570&#x27;],result.counts);\n}\n<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u78ba\u8a8d\u7d50\u679c\u3068\u5207\u308a\u5206\u3051<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th style=\"min-width:8em !important\">\u6761\u4ef6<\/th><th style=\"min-width:8em !important\">\u7d50\u679c<\/th><\/tr><\/thead><tbody><tr><td>\u7a7a\u30d5\u30a9\u30eb\u30c0<\/td><td>\u30d5\u30a9\u30eb\u30c0\u306e\u884c\u3092\u6b8b\u3057\u30660\u3092\u51fa\u529b<\/td><\/tr><tr><td>\u5b50\u306e\u4ef6\u6570<\/td><td>\u5404\u884c\u306f\u76f4\u4e0b\u306e\u6570\u3002\u30ed\u30b0\u306e\u5168\u8d70\u67fb\u5408\u8a08\u3068\u533a\u5225<\/td><\/tr><tr><td>\u4e0a\u9650\u30fb\u91cd\u8907ID<\/td><td>\u9014\u4e2d\u306e\u96c6\u8a08\u3092\u5b8c\u6210\u7d50\u679c\u3068\u3057\u3066\u66f8\u304d\u8fbc\u307e\u306a\u3044<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Node.js\u306e\u6a21\u64ec\u691c\u8a3c\u306f5\u8a18\u4e8b\u5408\u8a0869\u30b1\u30fc\u30b9\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7d14\u7c8b\u95a2\u6570\u306e\u7d50\u679c\u3068\u3001\u6a21\u64ec\u306eGoogle\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u5bfe\u8c61\u9078\u629e\u30fb\u66f8\u8fbc\u5148\u30fb\u5931\u6557\u6642\u505c\u6b62\u3092\u78ba\u8a8d\u3057\u305f\u7bc4\u56f2\u3067\u3042\u308a\u3001\u5b9f\u30b5\u30fc\u30d3\u30b9\u306e\u6210\u529f\u3092\u793a\u3059\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">100\u30d5\u30a9\u30eb\u30c0\u307e\u305f\u306f1000\u30d5\u30a1\u30a4\u30eb\u3092\u8d85\u3048\u308b\u3068\u3001\u63b2\u8f09\u30b3\u30fc\u30c9\u304c\u8d70\u67fb\u3092\u6b62\u3081\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u306f\u30b5\u30f3\u30d7\u30eb\u72ec\u81ea\u306e\u4e0a\u9650\u3067\u3001Google Drive\u5168\u4f53\u306e\u4fdd\u5b58\u4e0a\u9650\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u516c\u5f0f\u306eApps Script\u5b9f\u884c\u6642\u9593\u306f1\u56de6\u5206\u3067\u3001\u3053\u306e\u4ef6\u6570\u4ee5\u5185\u3067\u3082\u6642\u9593\u5207\u308c\u3084\u8a8d\u53ef\u30a8\u30e9\u30fc\u306b\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u9014\u4e2d\u518d\u958b\u306f\u306a\u304f\u3001\u5171\u6709\u30c9\u30e9\u30a4\u30d6\u3084\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u306e\u30ea\u30f3\u30af\u5148\u3001\u898b\u3048\u306a\u3044\u30d5\u30a1\u30a4\u30eb\u3092\u542b\u3080\u7db2\u7f85\u7684\u306a\u68da\u5378\u3057\u306f\u672a\u78ba\u8a8d\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u51fa\u529b\u3059\u308b\u30d5\u30a9\u30eb\u30c0\u30d1\u30b9\u306e\u5148\u982d\u304c<code>=<\/code>\u306a\u3069\u306e\u8a18\u53f7\u306a\u3089\u3001\u6587\u5b57\u5217\u3068\u3057\u3066\u6271\u3046\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Drive\u306e\u5171\u6709\u7bc4\u56f2\u306f\u5909\u66f4\u305b\u305a\u3001\u95b2\u89a7URL\u3092\u53d6\u5f97\u3057\u3066\u3082\u4ed6\u306e\u30e6\u30fc\u30b6\u30fc\u3078\u95b2\u89a7\u6a29\u9650\u3092\u4e0e\u3048\u308b\u3053\u3068\u306b\u306f\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8a2d\u5b9a\u4e0d\u8db3\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3089\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u3042\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u540d\u306e\u7db4\u308a\u3068\u4fdd\u5b58\u6e08\u307f\u306e\u5024\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u30d5\u30a9\u30eb\u30c0\u53d6\u5f97\u3084\u51fa\u529b\u3067\u6a29\u9650\u30a8\u30e9\u30fc\u306b\u306a\u308b\u5834\u5408\u306f\u3001\u540c\u3058\u5b9f\u884c\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u5bfe\u8c61\u3092\u958b\u3051\u308b\u304b\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u5b50\u306e\u884c\u304c\u51fa\u306a\u3044\u3068\u304d\u306f<code>RECURSIVE<\/code>\u3001\u4ef6\u6570\u304c\u60f3\u5b9a\u3068\u9055\u3046\u3068\u304d\u306f\u30d5\u30a9\u30eb\u30c0ID\u3068\u51fa\u529b\u5148\u306e\u7f6e\u304d\u5834\u6240\u3092\u898b\u76f4\u3057\u307e\u3059\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u4ef6\u6570\u4e0a\u9650\u3084\u6642\u9593\u5207\u308c\u306a\u3089\u3001\u5bfe\u8c61\u3092\u5c0f\u3055\u306a\u5b50\u30d5\u30a9\u30eb\u30c0\u306b\u7d5e\u3063\u3066\u5b9f\u884c\u3057\u76f4\u3057\u307e\u3059\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">\u4ef6\u6570\u3092\u7167\u5408\u3059\u308b\u3068\u304d\u306b\u6b8b\u3059\u8a18\u9332<\/h2>\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u884c\u524d\u306b\u3001\u89aa\u3068\u5b50\u306e\u76f4\u4e0b\u306b\u3042\u308b\u7df4\u7fd2\u30d5\u30a1\u30a4\u30eb\u3092\u5225\u3005\u306b\u6570\u3048\u3066\u63a7\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u51fa\u529b\u5148\u30b7\u30fc\u30c8\u306f\u5bfe\u8c61\u306e\u5916\u3078\u7f6e\u304d\u3001\u96c6\u8a08\u4e2d\u306f\u7df4\u7fd2\u30d5\u30a1\u30a4\u30eb\u306e\u8ffd\u52a0\u3084\u79fb\u52d5\u3092\u6b62\u3081\u307e\u3059\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u884c\u65e5\u6642\u30fb\u5bfe\u8c61\u30d5\u30a9\u30eb\u30c0ID\u30fb<code>RECURSIVE<\/code>\u306e\u5024\u30fb\u30ed\u30b0\u306e\u4ef6\u6570\u3092\u8a18\u9332\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u51fa\u529b\u5f8c\u306f\u30d5\u30a9\u30eb\u30c0\u540d\u3060\u3051\u3067\u306a\u304fID\u3082\u7167\u5408\u3057\u3001\u540c\u540d\u306e\u5225\u30d5\u30a9\u30eb\u30c0\u3092\u6570\u3048\u3066\u3044\u306a\u3044\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u89aa\u306e\u884c\u3092\u5b50\u306e\u5408\u8a08\u3068\u601d\u3063\u3066\u6bd4\u8f03\u3059\u308b\u3068\u3001\u6b63\u5e38\u306a\u7d50\u679c\u3067\u3082\u4e0d\u8db3\u306b\u898b\u3048\u308b\u70b9\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u81f4\u3057\u306a\u3044\u5834\u5408\u306f\u3001\u76f4\u4e0b\u3060\u3051\u306e\u5b9f\u884c\u304b\u3089\u59cb\u3081\u3066\u3001\u5b50\u3092\u542b\u3081\u308b\u6761\u4ef6\u306b\u4e00\u3064\u305a\u3064\u5e83\u3052\u307e\u3059\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u5e83\u3044\u7bc4\u56f2\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3068\u304d\u306f\u3001\u4e0a\u9650\u5024\u3092\u5897\u3084\u3059\u524d\u306b\u5c0f\u3055\u3044\u5bfe\u8c61\u3067\u5b8c\u4e86\u3059\u308b\u304b\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u8a18\u9332\u3092\u6b8b\u3059\u3068\u3001\u8a2d\u5b9a\u306e\u9055\u3044\u3068\u8d70\u67fb\u4e2d\u306e\u30d5\u30a1\u30a4\u30eb\u5897\u6e1b\u3092\u5206\u3051\u3066\u8abf\u3079\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u505c\u6b62\u3068\u623b\u3057\u65b9<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u4f8b\u306f\u5b9a\u671f\u30c8\u30ea\u30ac\u30fc\u3092\u4f5c\u6210\u3057\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u65e2\u5b58\u30c8\u30ea\u30ac\u30fc\u304b\u3089\u547c\u3076\u5909\u66f4\u3092\u52a0\u3048\u308b\u5834\u5408\u306f\u3001\u307e\u305a\u624b\u52d5\u30671\u56de\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u5b9a\u671f\u5b9f\u884c\u3092\u7d42\u4e86\u3059\u308b\u3068\u304d\u306f\u3001\u5bfe\u8c61\u306e\u30c8\u30ea\u30ac\u30fc\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7d50\u679c\u30b7\u30fc\u30c8\u306f\u6bce\u56de\u65b0\u898f\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u66f8\u8fbc\u6642\u306e\u5931\u6557\u3067\u9014\u4e2d\u7d50\u679c\u304c\u6b8b\u308b\u5834\u5408\u306f\u5b8c\u6210\u3057\u305f\u4e00\u89a7\u3068\u3057\u3066\u4f7f\u308f\u305a\u3001\u65e2\u5b58\u306e\u5143\u30c7\u30fc\u30bf\u3068\u6df7\u305c\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7d50\u679c\u306e\u524a\u9664\u3084\u53e4\u3044\u30b7\u30fc\u30c8\u306e\u4e00\u62ec\u6d88\u53bb\u306f\u30b3\u30fc\u30c9\u306b\u542b\u3081\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u516c\u5f0f\u8cc7\u6599<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developers.google.com\/apps-script\/reference\/drive\/folder\">Drive\u30d5\u30a9\u30eb\u30c0\u306e\u53d6\u5f97\u3068\u5217\u6319<\/a>\u3001<a href=\"https:\/\/developers.google.com\/apps-script\/reference\/spreadsheet\/range\">\u30b7\u30fc\u30c8\u7bc4\u56f2\u3078\u306e\u53cd\u6620<\/a>\u3001<a href=\"https:\/\/developers.google.com\/apps-script\/guides\/html\/templates\">HTML\u3078\u306e\u51fa\u529b\u3068\u30a8\u30b9\u30b1\u30fc\u30d7<\/a>\u3001<a href=\"https:\/\/developers.google.com\/apps-script\/guides\/services\/quotas\">Apps Script\u306e\u5229\u7528\u4e0a\u9650<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u95a2\u9023\u8a18\u4e8b\u30fb\u65e7\u5b9f\u88c5\u306e\u53c2\u8003\u8cc7\u6599<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f93\u6765\u306e\u30b3\u30fc\u30c9\u3084\u5916\u90e8\u306e\u53c2\u8003\u4f8b\u306f\u3001\u672c\u7a3f\u306e\u7df4\u7fd2ZIP\u3068\u5185\u5bb9\u304c\u7570\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4eca\u56de\u306e\u30b3\u30fc\u30c9\u306f\u8a18\u4e8b\u3054\u3068\u306b\u5225\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3078\u4fdd\u5b58\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<div class=\"swell-block-postLink\">\t\t\t<a href=\"https:\/\/script.google.com\/home\/projects\/create\" class=\"c-blogLink -external\" data-style=\"text\" target=\"_blank\" rel=\"noopener noreferrer\">\n\t\t\t\t<!-- <i class=\"c-blogLink__icon icon-link\" role=\"presentation\"><\/i> -->\n\t\t\t\t<span class=\"c-blogLink__icon\">\n\t\t\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"swl-svg-externalLink __svg\" width=\"1em\" height=\"1em\" viewBox=\"0 0 48 48\" role=\"img\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M44 2H30c-1.1 0-2 .9-2 2s.9 2 2 2h9.2L24 21.2c-.8.8-.8 2 0 2.8s2 .8 2.8 0L42 8.8V18c0 1.1.9 2 2 2s2-.9 2-2V4c0-1.1-.9-2-2-2z\" \/><path d=\"M41 27c-1.1 0-2 .9-2 2v10c0 1.1-.9 2-2 2H9c-1.1 0-2-.9-2-2V11c0-1.1.9-2 2-2h10c1.1 0 2-.9 2-2s-.9-2-2-2H9c-3.3 0-6 2.7-6 6v28c0 3.3 2.7 6 6 6h28c3.3 0 6-2.7 6-6V29c0-1.1-.9-2-2-2z\" \/><\/svg>\t\t\t\t<\/span>\n\t\t\t\t<span class=\"c-blogLink__text\">Apps Script \u00a0|\u00a0 Google for Developers<\/span>\n\t\t\t<\/a>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/05\/google-drive-folder-listing-gas-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/google\/google-drive-folder-listing-gas\/\">Google\u30c9\u30e9\u30a4\u30d6\u2502\u30d5\u30a9\u30eb\u30c0\u5185\u30d5\u30a1\u30a4\u30eb\u3092\u4e00\u89a7\u53d6\u5f97\u3059\u308b\u30c4\u30fc\u30eb<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">Google\u30c9\u30e9\u30a4\u30d6\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4e00\u62ec\u3067\u4e00\u89a7\u5316\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002 \u3053\u306e\u4f8b\u306f\u30de\u30a4\u30c9\u30e9\u30a4\u30d6\u306e\u5c0f\u3055\u306a\u30d5\u30a9\u30eb\u30c0\u3092\u5bfe\u8c61\u306b\u3001\u5b9f\u884c\u8005\u304c\u95b2\u89a7\u3067\u304d\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u5217\u6319\u3057\u307e\u3059\u3002\u5171\u6709\u30c9\u30e9\u30a4\u30d6\u3092\u542b&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2020\/04\/eyecatch-google-apps-script-convert-spreadsheet-300x169.png\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/google\/gas-batch-convert-google-format\/\">Google\u30c9\u30e9\u30a4\u30d6\u2502\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u307e\u3068\u3081\u3066\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u30fb\u30b9\u30e9\u30a4\u30c9\u30fb\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u81ea\u52d5\u5909\u63db\u3059&#8230;<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">Drive\u30d5\u30a9\u30eb\u30c0\u76f4\u4e0b\u306eExcel\u30fbCSV\u3092Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3001PowerPoint\u3092Google\u30b9\u30e9\u30a4\u30c9\u3001Word\u3092Google\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3078\u5909\u63db\u3059\u308bGAS\u306e\u4f8b\u3067\u3059\u3002\u5143\u30d5\u30a1\u30a4\u30eb\u3092\u6b8b\u3057\u3001\u5225\u306e\u7a7a\u30d5&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2021\/01\/gas-copy-files-between-folders-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/google\/gas-copy-files-between-folders\/\">Google\u30c9\u30e9\u30a4\u30d6\u2502\u30d5\u30a9\u30eb\u30c0\u30fc\u76f4\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u307e\u3068\u3081\u3066\u30b3\u30d4\u30fc\u3059\u308b\u65b9\u6cd5<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">Google\u30c9\u30e9\u30a4\u30d6\u3067\u3001\u30d5\u30a9\u30eb\u30c0\u30fc\u76f4\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u5225\u30d5\u30a9\u30eb\u30c0\u30fc\u3078\u30b3\u30d4\u30fc\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002 GAS\uff08Google Apps Script\uff09\u306f\u3001Google\u30b5\u30fc\u30d3\u30b9\u3092\u64cd\u4f5c\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3059\u3002 &#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/google\/wp-content\/uploads\/2025\/05\/gas-rename-files-in-folder-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/google\/gas-rename-files-in-folder\/\">Google\u30c9\u30e9\u30a4\u30d6\u2502\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u4e00\u62ec\u30ea\u30cd\u30fc\u30e0\uff01\u6587\u5b57\u5217\u3092\u7f6e\u63db\u3057\u3066\u81ea\u52d5\u5909\u66f4\u3059\u308b\u65b9\u6cd5<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">\u30d5\u30a9\u30eb\u30c0\u30fc\u76f4\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u4e00\u62ec\u3067\u7f6e\u63db\u3059\u308b\u306b\u306f\u3001\u5909\u66f4\u524d\u306e\u540d\u524d\u3068ID\u3092\u4fdd\u5b58\u3057\u3001\u7f6e\u63db\u7d50\u679c\u3092\u5148\u306b\u78ba\u8a8d\u3057\u307e\u3059\u3002 \u3053\u306e\u8a18\u4e8b\u306eGAS\u306f\u5b50\u30d5\u30a9\u30eb\u30c0\u30fc\u3078\u5165\u3089\u305a\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u3060\u3051\u3092\u5909&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081\uff1a\u5c0f\u3055\u306a\u30d5\u30a9\u30eb\u30c0\u3067\u76f4\u4e0b\u3068\u5168\u8d70\u67fb\u306e\u6570\u3092\u7167\u5408\u3059\u308b<\/h2>\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305a\u7df4\u7fd2\u7528\u306e\u89aa\u30fb\u5b50\u30d5\u30a9\u30eb\u30c0\u3067\u30ed\u30b0\u3068\u5404\u884c\u306e\u6570\u3092\u7167\u5408\u3057\u3001\u5408\u3063\u3066\u304b\u3089\u5bfe\u8c61\u3092\u5e83\u3052\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>\u5404\u30d5\u30a9\u30eb\u30c0\u306e\u76f4\u4e0b\u306b\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u6570\u3092\u96c6\u8a08\u3057\u307e\u3059\u3002 \u89aa\u306e\u884c\u306f\u5b50\u306e\u4ef6\u6570\u3092\u5408\u7b97\u305b\u305a\u3001\u5168\u8d70\u67fb\u306e\u5408\u8a08\u306f\u5b9f\u884c\u30ed\u30b0\u306b\u5206\u3051\u3066\u8868\u793a\u3057\u307e\u3059\u3002 \u30d5\u30a1\u30a4\u30eb\u4ef6\u6570\u306f\u4f7f\u7528\u5bb9\u91cf\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002 \u4ee5\u4e0b\u306e\u6a21\u64ec\u691c\u8a3c\u306f2026\u5e7410\u67082\u65e5\u306e\u8a18\u9332\u3067\u3059\u3002 \u30ed\u30fc\u30ab\u30eb\u306e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":299,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","book_review_data":"","footnotes":"","ssp_meta_title":"Google\u30c9\u30e9\u30a4\u30d6\u306e\u30d5\u30a1\u30a4\u30eb\u6570\u3092\u6570\u3048\u308b\u65b9\u6cd5\uff5cGAS\u3067\u96c6\u8a08\u3059\u308b","ssp_meta_description":"Google\u30c9\u30e9\u30a4\u30d6\u306e\u30d5\u30a9\u30eb\u30c0\u5185\u306b\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u6570\u3092\u6570\u3048\u308b\u65b9\u6cd5\u3067\u3059\u3002\u753b\u9762\u4e0a\u3067\u306f\u5408\u8a08\u304c\u51fa\u306a\u3044\u305f\u3081\u3001Google Apps Script\u3067\u96c6\u8a08\u3057\u307e\u3059\u3002\u30b5\u30d6\u30d5\u30a9\u30eb\u30c0\u3092\u542b\u3081\u3066\u6570\u3048\u308b\u30b3\u30fc\u30c9\u3082\u8f09\u305b\u3066\u3044\u307e\u3059\u3002"},"categories":[19],"tags":[18,9],"class_list":["post-295","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google-drive","tag-gas","tag-free"],"_links":{"self":[{"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/posts\/295","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/comments?post=295"}],"version-history":[{"count":15,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/posts\/295\/revisions"}],"predecessor-version":[{"id":23841,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/posts\/295\/revisions\/23841"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/media\/299"}],"wp:attachment":[{"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/media?parent=295"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/categories?post=295"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cg-method.com\/google\/wp-json\/wp\/v2\/tags?post=295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}