windows – 为什么我在尝试打开和保存文件时收到“其他用户正在使用的文件”和“应用程序共享冲突”错误?

我们最近得到了很多.

> Windows 2008 Server
> Windows 7& Vista客户端PC
> Microsoft Office 2007

当用户尝试在我们的网络驱动器(word doc,excel电子表格等)上打开文件时,软件会报告该文件被“其他用户”锁定,即使它不是.在尝试将文件保存到网络时,他们也会看到随机的“共享冲突”错误.

当用户尝试在他们自己的驱动器上保存非网络文件并且他们得到“由于共享冲突而无法保存”时,可能会出现相同的问题表现形式.

好的,在追踪潜在问题和测试解决方案后,自问题发布以来,我有答案……

任何实时访问文件(防病毒,同步或索引软件)都可能导致Microsoft Office文件出现问题.

保存时,Microsoft Office会创建临时文件(包含和不包含文件扩展名).过度热衷的实时扫描程序有时会看到这些临时文件,尝试并读取其内容,并在此过程中启动文件锁定.当父应用程序尝试将临时文件转换回其预期格式时,这会导致即时问题.

MSKB: Description of the way that Excel saves files

When Excel saves a file,Excel follow
these steps:

  1. Excel creates a randomly named temporary file (for example,Cedd4100
    with no file name extension) in the
    destination folder that you specified
    in the Save As dialog box. The whole
    workbook is written to the temporary
    file.
  2. If changes are being saved to an existing file,Excel deletes the
    original file.
  3. Excel renames the temporary file. Excel gives the temporary file
    the file name that you specified (such
    as Book1.xls) in the Save As dialog
    box.

MSKB: Description of how Word creates temporary files开始

A simplified view of the scheme used
to save an edited file

Create temp file
Write temp file
Delete original file
Move temp to target name

Word gains significant performance
speed by placing the temporary file in
the same directory as the saved file.
If Word placed the temporary file
elsewhere,it would have to use the
MS-DOS COPY command to move the
temporary file from the other
directory to the saved location. By
leaving the temporary file in the same
directory as the saved document file,
Word can use the MS-DOS MOVE command
to quickly designate the temporary
file as the saved document.

大多数av,索引和同步软件正确处理临时文件;有些人没有.有些工作正常,但在观看同一个文件夹时不能很好地协同工作.您可以自行决定在您的环境中导致问题的程序.希望这个答案能够为正确的方向提供指导.

更新:Microsoft已发布一些修补程序来解决此问题.
Office 2007 Hotfix
Excel 2007 Hotfix
而不是从MS请求修补程序,而是在The Hotfix Share搜索它们.

仅供参考:既没有完全解决我们的问题,但它们确实显着降低了“共享违规”频率.

相关文章

文章浏览阅读2.2k次,点赞6次,收藏20次。在我们平时办公工作...
文章浏览阅读1k次。解决 Windows make command not found 和...
文章浏览阅读3.2k次,点赞2次,收藏6次。2、鼠标依次点击“计...
文章浏览阅读1.3w次。蓝光版属于高清版的一种。BD英文全名是...
文章浏览阅读974次,点赞7次,收藏8次。提供了更强大的功能,...
文章浏览阅读1.4w次,点赞5次,收藏22次。如果使用iterator的...