简体   繁体   English

使用Flex 3 / AIR File Class写入文件时如何确定在Windows中打开文件

[英]How determine File is Open in WIndow while writing file using Flex 3/AIR File Class

I want to update a file using FLex3/AIR File class. 我想使用FLex3 / AIR File类更新文件。 I know how to do this , but before writing(updating) to file i want to check if current file is open in the OS or some other application is using that file or not . 我知道如何执行此操作,但是在写入(更新)文件之前,我想检查操作系统中是否打开了当前文件,或者其他一些应用程序是否正在使用该文件。 please kindly help on this. 请对此提供帮助。

Thanks Sanjay 谢谢桑杰

You can't do this with AIR alone. 您不能仅凭AIR来做到这一点。 However, you can launch a command line app from your AIR app to get this info and return it to AIR. 但是,您可以从AIR应用程序启动命令行应用程序以获取此信息并将其返回给AIR。 You'd need a separate command line and results processor per OS though. 不过,您需要一个单独的命令行和每个操作系统的结果处理器。

On Windows you can do this with handle.exe . 在Windows上,您可以使用handle.exe执行此操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM