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.
我正在编写一个更新程序(使用 NSIS),我想在安装目录上获得某种锁定,以确保我对该目录中的所有文件都有写访问权限。有没有办法做到这一点?或者至少如何检测指定目录中没有文件正在使用?
做你想做的事情的正确方法是使用 Transactional NTFS 将多个文件一次大量写入目录。这样你就不需要使用锁了。