Online Documents
繁體中文
繁體中文
  • First Launch Experience
  • How to Train EMILY?
  • Simple Web Automation
  • Web Automation Tools
  • Web Automation Processor
  • User Fill
  • Workspace Script
  • File Exporter
  • File Enumerator
  • EXCEL Processor
  • EXCEL Analyzer
  • EXCEL Writer
  • EXCEL Filler
  • CSV Creator
  • PowerShell
  • PDF Analyzer
  • Mail Sender
  • Mail Reader
  • Exchange Mail Sender
  • Exchange Mail Reader
  • HTTP Analyzer
  • Command Line
  • DOCX Templater
  • SQL Executor
  • Desktop Automation (DA)
  • SFTP
  • JSON API Server
  • Chart
  • DOCX2HTML
  • Folder Processor
  • Google Drive
  • Google Sheets
  • Google OCR
  • Google NLU
  • Azure Form Recognizer
  • Anti-Captcha
  • ChatGPT
  • Gemini
  • Schedule Trigger
  • Mail Trigger
  • File Trigger
  • API Trigger
  • Protect Text
  • Flexibility & Security
  • Announcement
    • Version Releases
    • Third Party Notice
Powered by GitBook
On this page
  • FOLDER
  • input 輸入陣列
  • output 輸出陣列

File Enumerator

列舉指定資料夾中的檔案並輸出成CSV

PreviousFile ExporterNextEXCEL Processor

Last updated 2 years ago

FOLDER

指定的資料夾,點擊 PICK 按鈕指定或使用 %FILENAME% 變數。

input 輸入陣列

在 input 陣列中的每個元素代表一個指定資料夾內檔案的路徑。

// 印出指定資料夾中每個檔案的路徑
input.forEach((filepath) => console.log(filepath))

output 輸出陣列

在 output 陣列中的每個檔案路徑將被用來產生CSV格式檔案。

// 將指定資料夾內的所有TXT檔建立一個CSV表
input.forEach((filepath) => {
  if (filepath.endsWith('txt')) output.push(filepath)
})