Tại sao Microsoft Word tạo hai bản sao khi đang sử dụng?

Mục lục:

Tại sao Microsoft Word tạo hai bản sao khi đang sử dụng?
Tại sao Microsoft Word tạo hai bản sao khi đang sử dụng?

Video: Tại sao Microsoft Word tạo hai bản sao khi đang sử dụng?

Video: Tại sao Microsoft Word tạo hai bản sao khi đang sử dụng?
Video: How to Make ANY Application Portable - YouTube 2024, Có thể
Anonim
Trong khi bạn có thể không nghĩ về hoặc nhận ra nó, Microsoft Word tạo ra một bản sao thứ hai của bất kỳ tài liệu bạn đã mở và đang làm việc trên. Nhưng tại sao Microsoft Word làm điều này? Bài đăng & trả lời của người dùng siêu người dùng hôm nay có câu trả lời cho câu hỏi của người đọc tò mò về hành vi này.
Trong khi bạn có thể không nghĩ về hoặc nhận ra nó, Microsoft Word tạo ra một bản sao thứ hai của bất kỳ tài liệu bạn đã mở và đang làm việc trên. Nhưng tại sao Microsoft Word làm điều này? Bài đăng & trả lời của người dùng siêu người dùng hôm nay có câu trả lời cho câu hỏi của người đọc tò mò về hành vi này.

Phiên Hỏi & Đáp hôm nay đến với chúng tôi theo lịch sự của SuperUser - một phân khu của Stack Exchange, một nhóm các trang web Hỏi & Đáp do cộng đồng điều hành.

Câu hỏi

Trình đọc siêu người dùng JBurnham muốn biết tại sao Microsoft Word tạo hai bản sao khi đang sử dụng:

Why does Microsoft Word create another copy of the same file, but hidden, while in use? And why does the file created while a document is open always have “~$” replacing the first 2 letters of the file name?

For example:

Image
Image

Tại sao Microsoft Word tạo một bản sao thứ hai? Và điều gì xảy ra với “~ $” trong tên của tệp phụ?

Câu trả lời

Những người đóng góp của SuperUser Matthew Williams và Frank Thomas có câu trả lời cho chúng tôi. Đầu tiên, Matthew Williams:

The file you refer to is a temporary file which serves a number of purposes. From Microsoft themselves:

Quoted Text: A temporary file is a file that is created to temporarily store information in order to free memory for other purposes, or to act as a safety net to prevent data loss when a program performs certain functions. For example, Word determines automatically where and when it needs to create temporary files. The temporary files only exist during the current session of Word. When Word is shut down in a normal fashion, all temporary files are first closed and then deleted.

Speed

Going on from this, these temporary files help improve speed. If your system is struggling with having enough memory, Word will help it along by shifting non used functionality from memory to disk in the form of a temporary file.

Integrity

In order to ensure the integrity of your file in the event of a system error, information is written to the temporary file, then on to the original file. Should you have any error occur, it can be restricted/recovered from temporary files rather than your core file.

Locked Files

Quoted Text: When you open a file that is locked, either because it is open in another window of Word or because another user on the network has it open, you can work with a copy of the file. Word places this copy in the Windows Temp directory. Likewise, if a template attached to a document is locked, Word automatically makes a copy of the template in the Temp directory. The copy of a locked file does not automatically update the original owner’s file.

Owner File ~$ (Same Directory as Source File)

Quoted Text: When a previously saved file is opened for editing, for printing, or for review, Word creates a temporary file that has a.doc file name extension. This file name extension begins with a tilde (~) that is followed by a dollar sign ($) that is followed by the remainder of the original file name. This temporary file holds the logon name of the person who opens the file. This temporary file is called the “owner file”.

Source – Description of how Word creates temporary files [Microsoft]

Final note from Matthew: This is a sizable topic. I have provided a number of examples on this file’s usage, but please use the source provided for a detailed list of reasons from Microsoft. I do not want to copy/paste the entire page here.

Tiếp theo là câu trả lời từ Frank Thomas:

Primarily because of the Auto-save features. If you do not tell a document to save your changes, do you expect it to save over the original with no command to, or warning that it will happen? It also allows your changes to be recovered if Word crashes and you have not saved for 2 hours. By default, there will be a 10 minute old version of your changes that can be recovered.

On a more basic level, it allows one user to open a file on a share and read it while another user has it open for modification, though if multiple users are editing it, last-in-wins.

Có cái gì để thêm vào lời giải thích? Tắt âm thanh trong các ý kiến. Bạn muốn đọc thêm câu trả lời từ những người dùng Stack Exchange có hiểu biết công nghệ khác? Xem toàn bộ chuỗi thảo luận tại đây.

Đề xuất: