Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想克隆并使用另一个进程正在打开/使用的文件。这实际上根本不可能吗?
我想可能定期复制文件内容(即每次复制 5 分钟并在我的程序中使用该副本)
如果其他进程只打开文件进行读取,应该是可以的;但是,如果它打开它是为了读取和写入(或只是写入),那么它将锁定文件,以便其他进程(包括您的进程)无法打开它。至少在 Windows 中是这样的。