🇻🇳
GPM Automate VI
  • NO-CODE AUTOMATION
    • Một số biến mặc định
    • Các block
      • Normal block
      • For
      • While
      • If
      • Else if
      • Else
    • Variables
      • Set variable
      • Increase variable
      • Decrease variable
      • Count
    • Workflow
      • Exit loop
      • Next loop
      • Delay
    • Text & number
      • Random text
      • Split text
      • Read json
      • Random number
      • Math execute
      • 2FA code
  • File & Folder
    • File exists
    • Copy file
    • Move/rename file
    • Delete file
    • File read all text
    • File read all lines
    • File write all text
    • File append line
    • Read excel file
    • Write excel file
    • Append excel file
    • Folder exists
    • Create folder
    • Move / rename folder
    • Delete folder
    • Folder get file list
  • Clipboard
    • Get clipboard text
    • Set clipboard text
  • HTTP
    • HTTP Request
    • HTTP Download
  • Image Search
    • Wait to image
    • Image exists
    • Image search
    • Ví dụ kết hợp
  • AI
    • ChatGPT
  • Mail
    • Read mail code
    • Read outlook (Oauth2)
  • Navigation
    • New tab
    • Active tab
    • Close tab
    • Go to URL
    • Back URL
    • Reload
    • Get URL
    • Wait URL Changed
  • Element
    • Wait element
    • Get element attribute
    • Get element text
    • Count element
  • Mouse
    • Mouse click
    • Mouse try to click
    • Mouse move
    • Mouse press and hold
    • Mouse release
    • Mouse scroll
  • Keyboard
    • Key press
    • File upload
    • Select dropdown
  • Scroll
    • Random scroll
    • Scroll to top
    • Scroll to bottom
    • Scroll to element
  • Switch
    • Switch to default
    • Switch to frame
    • Switch to popup
  • Cookie
    • Import cookie
    • Export cookie
  • Alert
    • Accept alert
    • Cancel alert
  • Javascript
    • Execute JS code
    • Get extension id
  • References
    • Call function
  • Google service
    • Read google sheet
    • Write google sheet
Powered by GitBook
On this page
  1. File & Folder

Folder get file list

Lấy danh sách file trong một thư mục. Kết quả trả về dưới dạng mảng 1 chiều với các phần tử là đường dẫn tới các file. Không bao gồm file trong các thư mục con. Index bắt đầu từ 0.

PreviousDelete folderNextClipboard

Last updated 10 months ago

VD: Bạn có 1 thư mục như hình bên dưới, đường dẫn là D:\test case. Thư mục này gồm 5 file.

Bạn áp dụng điền cho action Folder get file list như sau:

Khi đó kết quả trả về là 1 mảng $fileList, với index bắt đầu từ 0, và các phần tử của nó lần lượt là:

  • $fileList[0] = D:\test case\1234.txt

  • $fileList[1] = D:\test case\danhsach.xlsx

  • $fileList[2] = D:\test case\document.docx

  • $fileList[3] = D:\test case\test wait image.gpmcode

  • $fileList[4] = D:\test case\test wallet.txt

Folder get file list
Thư mục D:\test case