Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

detect file name in usb drive

mozed
2023-08-14
2023-08-16
  • mozed - 2023-08-14

    Hello!
    Can we detect the name of a file contained in a USB key without knowing it in advance?

    I want to be able to plug in a USB stick and know right away the names of the different files that are there.

    Is it possible?

    Cordially

     
  • dkugler - 2023-08-14

    have a look at Lib CAA File. There are many FB's to handel directories/files.
    In your case use DirOpen to get the handle to the root of the USB stick and DirList to read the entries.
    Good luck.

     
  • mozed - 2023-08-16

    I solved my problem ( I used linux commands via the Sys Process library)

     

Log in to post a comment.