gpt4 book ai didi

apache-flex - 弹性 3 和空气 2 : Automatically detect when files on a directory are updated

转载 作者:行者123 更新时间:2023-12-01 06:52:57 25 4
gpt4 key购买 nike

一个疯狂的想法刚刚从天而降,击中了我的头部 xD。我想知道当用户将新文件“添加”到目录时,是否可以让 App 能够监听。

例子:

  • 用户打开我们的应用程序。
  • 用户在桌面上添加新文件(使用 Microsoft Explorer)。
  • 我们的应用程序会自动检测到新文件已被添加并执行一个函数或其他什么。

  • 听起来很有趣吧?

    也许,这可以使用像 Visual Basic 这样的编程语言来完成,并使用 NativeProcess api 打开可执行文件并监听 stdOut 事件......(:

    有人有想法和我们分享吗? :)

    谢谢
    隆巴尔迪

    最佳答案

    AIR 可以本地处理这个...

    FileSystemList 类触发事件 directoryChange每当监视目录中的文件更改时。

    您甚至可以使用它来监视正在安装的驱动器(我认为 Christian Cantrell 展示了这一点)

    关于apache-flex - 弹性 3 和空气 2 : Automatically detect when files on a directory are updated,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3341267/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com