The File You Double-Click in a Shared Folder Is Not the Original

2026-12-02

Shared folders · File locks · Save conflicts · LAN sharing · Multi-user editing

Explore our enterprise content management whitepaper

Bottom line: when you double-click a Word or Excel file in a shared folder, you are not editing the remote file. It is copied in full to a temporary location on your machine, edited there, and written back in full when you save. A shared folder offers the ability to read and write files; it does not offer the ability to have two people edit the same file at once. That is why overlapping edits, failed saves, read-only openings, a mysterious ~$ file, and slow opening of large files are not failures — they are how this chain has always worked.

Scope note: this article describes general behavior of shared folders (SMB/CIFS-style file sharing) under desktop office software. It is not tied to a specific OS build or a specific office suite; prompts, lock-file naming, and temporary-directory locations vary by version, and actual behavior should be taken as authoritative. No bandwidth or timing figures are given, and nothing here constitutes a security assessment or deployment plan.

1. Start with the right mental model: you are opening a copy

Most people carry a model like this: the file sits on the other computer, I open it, I change it, and it changes there. That model is only half right. The file does sit on the other computer — but your editing never happens on it.

The real model: the moment you open it, the whole file is pulled to a temporary location on your machine; every keystroke, table recalculation, and layout change happens on that local copy; when you save, that complete new file is written back over the remote one.

This explains a detail people rarely notice: while you are editing, the remote file does not change with each keystroke. If anything in the chain breaks — the network drops, the other machine shuts down, the share disconnects — your edits are left hanging: neither on the remote copy nor in a formal local location.

2. The chain has four steps, and each can fail

Step What actually happens What it looks like when this step fails
1. Fetch to local The entire file is copied over the network to a local temp directory; the system also checks whether someone else has it open Large files open slowly; "in use" or "open read-only" prompts
2. Edit locally All changes live on the local copy; the remote file is untouched Everything looks normal — and that is exactly where the risk sits, because nothing is saved yet
3. Write back in full The complete new file is written out, replacing the remote one A network drop means a failed save; someone reading mid-replacement may read a partial file
4. Replacement completes Timestamps, size, and content now reflect your copy; ownership-style properties may change with it "Last modified" reflects only the final write-back, not who changed what

Note the wording in step 3: written back in full, not "a few bytes patched." Most desktop office software saves by writing a new file and replacing the old one, rather than modifying the original byte by byte. On a local disk that is fast and safe. Across a network it means one thing: fixing a single typo can resend tens of megabytes.

So "opening and saving a shared file is slow" is not necessarily a bad network. The chain itself is two full transfers. The bigger the file and the more people using the share, the more obvious it gets.

3. Five common symptoms, one mechanism

You do not need to memorize the symptoms. Understand the mechanism and you can derive them:

Symptom Mechanism What to do
Two people's edits overwrite each other There is no merge; whoever writes back last wins, and the earlier edit is replaced wholesale Agree that only one person edits a given file in a given window; save a new version before editing
Save fails after a network drop Changes exist only in the local temp copy; if they cannot be written back, they have no home First action: save a copy locally. Then decide how to merge it back
File opens read-only Someone has it open (or a stale lock file), or permissions are read-only to begin with Confirm who is editing; only then deal with the lock file and permissions
A ~$ file appears in the folder An "owner file" that tells others the document is being edited It disappears on a normal close; a crash leaves it behind, and it can be removed once nobody is editing
Large files open and save slowly Open fetches the whole file, save writes the whole file — unrelated to how much you changed Split or archive into parts; if it is edited constantly, change how it is collaborated on

The first row deserves emphasis: overwrites happen without any dialog. The person who saves last sees "saved successfully." The person before them sees "but I definitely changed that." The loss is silent — which makes it the hardest class of shared-folder problem to diagnose, because it leaves no error log, only two contradictory memories.

4. That file starting with "~$" is a lock, not junk

When you edit a document in a shared directory, a hidden file with the same name but a ~$ prefix quietly appears alongside it. It is not malware and not cache garbage. It is an owner file: it records who has the document open and on which machine.

Its purpose is simple: when a second person opens the document, the system can tell "this is being edited by someone," and respond with a warning or a read-only open. It is the closest thing a shared folder has to concurrency control — not a true file lock, but a "claim ticket."

It survives in two situations: the software crashed (crash, force-quit, power loss) before it could clean up, or the network dropped mid-edit so the close sequence never finished. The result: the next person to open the file is wrongly told it is in use.

Two rules for handling it: confirm first, delete second. Confirmation does not mean asking "are you editing it?" It means checking whether the document is actually changing — is anyone working in it, has the modified time just updated. Ask the other person to save and close before you remove the lock file. And if it is genuinely stale, removing it does not damage the document, because it never contained document content to begin with.

The trap to avoid: some teams "tidy up" by periodically clearing every ~$ file in a directory. That pulls the claim ticket out from under someone who is mid-edit, so the second person sees no warning, opens the file, and writes back — turning a visible conflict warning into a silent overwrite, which is worse than the original problem.

5. "Read-only" has four different causes

The same prompt can come from four unrelated situations. Treat them alike and you will make things worse:

One: someone really is editing. The lock file is present and the claim is live. This is not a problem — wait. The evidence is the machine name and user recorded in the lock file; if they match, someone is genuinely working.

Two: the lock file is stale. The person left long ago and the ticket remains. Confirm, then remove it. Note that lock-file naming rules differ by office suite and file type, so do not guess from the name — check whether it corresponds to the target document.

Three: permissions are genuinely read-only. The share or the file grants read access only. In this case no lock file can even be created, and there is no "in use" prompt — you simply cannot change it. Fix permissions, not the file.

Four: the read-only attribute is set, or another program holds the file. The first is visible in file properties. The second is common when a sync client is uploading, an antivirus scanner is reading, or the preview pane is generating a thumbnail — these holds usually clear within seconds, so retrying beats rearranging permissions.

6. Why shared folders are structurally unsuited to co-editing

Put the mechanisms together and the conclusion is plain: a shared folder provides file-level sharing, not content-level collaboration. The difference comes down to three gaps:

  • No merge, only replacement. Two people each edit a different paragraph on two copies; nothing reconciles them, and whichever copy is written back later replaces the other entirely.
  • No versions, only "current." Once written back, the previous state is gone. Finding "yesterday afternoon's draft" depends on someone having happened to save a copy.
  • No "who changed what," only "last modified at." A timestamp proves when the final write-back occurred, not which passage changed or who changed it.

This is not a misconfiguration. It is what the mechanism was designed to do: let another machine read and write files that live on one machine — not let several people edit one document together. Using it for the latter builds accidents into the process.

A practical test: look at edit frequency and the number of contributors. Edited once a week by one owner, a shared folder is perfectly adequate. Edited three times a day by three people, an overwrite is not a possibility — it is a matter of time.

7. Three things you can do without changing platforms

One: save a copy before editing. Turn "I will edit this file" into "I will save a copy with my name and the date, edit that, then decide whether to replace the original." This converts replacement into coexistence, at a cost of a few seconds.

Two: one person, one window. Put a simple sign-up line in the directory, or encode the owner in the file name. You do not need a process — you need a visible signal of whose turn it is.

Three: when a save fails, land it locally first. On seeing "cannot save to the network location," do not retry — save to the local desktop. While your changes live only in memory, one accidental close can erase them for good.

None of these fixes the root problem, but together they turn "silent loss" into "visible friction." Visible friction can be managed.

8. If co-editing is real, change the storage-and-editing layer

If three people truly edit the same document every day, the problem is not discipline — the tool layer is missing two things: versions and merging. There are two ways to add them:

One is to add versions at the storage layer. Put files on a platform with history and operation records, and let the shared folder keep doing what it does best: holding files. At minimum you gain the ability to roll back a bad edit and to see who touched the file when. But this still does not enable simultaneous editing — it only moves overwrites from "unrecoverable" to "recoverable."

The other is to make editing itself online. Documents open in a browser or client, several people edit at once, changes appear in real time, and every step leaves a trace. This route removes the root cause — no local copy means no write-back, and no write-back means no overwrite.

For most organizations these end up combined: files live on one content platform, everyday documents open in online collaboration, and the few that require desktop software (specific layout tools, specific add-ins) stay on shares or sync — but with version history attached. Layering the tools is far easier to adopt than forcing everyone to change a habit.

9. FAQ

1. If two people open the same file at once, is one guaranteed to lose work?

Not guaranteed, but the risk is structural. If the second person is detected as "in use" and can only open read-only, no loss occurs. Once both sides enter an editable state and both write back, the later write replaces the earlier one. The difference is only whether someone was stopped — not whether any protection exists.

2. Can I just delete that ~$ file?

When nobody is editing, yes — it holds no document content. But do not batch-clear them while you are unsure. Removing a claim ticket makes later users assume the file is free, which manufactures overwrites. The order is always: check whether anyone is actually working, then decide.

3. Will editing a file in a shared folder damage the other person's original?

It will not "damage" it, but it will replace it. Once your save succeeds, the remote file is your version — regardless of whether the content is worse. If the other copy contained a section yours lacks, that section is gone. Protection comes from saving a copy first and having versions to roll back to, not from the save action itself.

4. Why is a file that opens instantly on a local disk slow in a share?

Because opening and saving are each a full transfer, and on a local disk both take essentially no time. The larger the file, the weaker the network, and the more concurrent users, the wider the gap. This is not a broken share; it is the chain's cost, amplified by the network.

5. Is a shared folder still worth using, then?

Yes — in the right places: storing, distributing, read-only reference, and documents with a single owner. It is simple, direct, and needs no extra client. What it is not suited for is frequent multi-person editing of the same file — that is outside its capability and outside its design intent.

10. Closing

The word "sharing" blurs two different things: everyone can get the same file, and everyone can change the same file at the same time. A shared folder does the first, and does it well. It never promised the second.

So when overwrites, lock files, or read-only opens show up, do not start hunting for the setting someone forgot to flip. Ask first: am I asking a shared folder to do something it was never good at? Answering that usually beats tuning ten parameters.

Read the enterprise content management whitepaper

About Filez

Filez is Lenovo's collaboration brand, focused on end-to-end intelligent collaboration across files, content, and knowledge. Its portfolio spans enterprise cloud drive, online documents, and an unstructured data platform. The enterprise cloud drive was launched in 2006 — the earliest developed and longest operated product of its kind in China — and online documents followed in 2017 as a domestic first.

With nearly two decades behind it, Filez's market standing continues to be recognized by authoritative institutions: internationally, it was included in Gartner's Magic Quadrant™ for Document Management as the only vendor from East Asia in that report; domestically, IDC's China Intelligent Enterprise Content and Knowledge Platform Market Share, 1H26 ranks Filez first in the private-deployment segment.

Disclaimer: this article describes general read/write behavior of shared folders under desktop office software and is not specific to any OS build or office suite. Prompt wording, lock-file naming, and temporary-directory locations vary by version and should be taken as authoritative. Nothing here provides a security assessment, permission design, or deployment plan; related decisions should follow your organization's IT policies.


目录大纲